Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16534

Investigate changes in SERVER-78241: truncated log line shows number of remaining strings instead of truncated strings

      Original Downstream Change Summary

      This changes the format of the truncation report in the server logs to show how many elements were omitted at each level of the truncated JSON object.

      Description of Linked Ticket

      When running a simple find command with over 5000 elements in $in clause, the output in the log line is: 

       ... _id:{$in:[ <truncated list of 377 out of 5000 values> ] ...
      {
          "truncated" : {
              "command" : {
                  "filter" : {
                      "_id" : {
                          "$in" : {
                              "377" : {
                                  "type" : "string",
                                  "size" : 29
                              }
                          }
                      }
                  }
              }
          },

      I'd love to know how many actual values were truncated which is what I thought it would show but it seems instead to show how many are written.

            Assignee:
            alison.huh@mongodb.com Alison Huh
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              21 weeks, 4 days ago