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

truncated log line shows number of remaining strings instead of truncated strings

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • Fully Compatible
    • v7.0, v6.0, v5.0
    • Security 2023-07-10, Security 2023-07-24, Security 2023-08-07, Security 2023-08-21, Security 2023-10-16, Security 2023-11-13, Security 2023-11-27, Security 2023-12-11

      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:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: