Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50319

[SBE] Implement truncation of large values for logging

    • Fully Compatible
    • v5.0
    • Query Execution 2021-06-14, Query Execution 2021-06-28

      The goal of this task is to update writeValueToStream() to do the following:
      (1) Truncate arrays and objects if they exceed a certain depth and/or if they exceed a certain number of elements/fields; and
      (2) Truncate bsonRegex's and bsonJavascript's if they exceed a certain length.

      We need to figure out what specific scheme we want to use for truncating arrays and objects. One option is to implement a scheme similar to what BSONElement::toString() does.

      (For bonus points, it would be nice to also fix writeValueToStream() so that it actually prints out the contents of a jsFunction instead of just printing out "jsFunction".)

            Assignee:
            adi.agrawal@mongodb.com Adi Agrawal
            Reporter:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: