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

When group insert fails, the error type is not printed in logs.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.4.8, 5.1.0-rc0
    • Replication
    • None
    • Fully Compatible
    • v5.0, v4.4
    • Repl 2021-07-12

    Description

      When group insert fails here, we only print a message and some attributes to the log, without actually printing the error itself. It seems to assume the caller of this method would print the error status, but  unfortunately the caller only checks if the status is OK and ignores it if it's an error instead of printing the error.  This makes it hard to debug issues since we don't know what caused it to fail. We should also exclude `NamespaceNotFound` error from the error log similar to DuplicateKey error, which can also be safely ignore during initial sync.

      Attachments

        Issue Links

          Activity

            People

              wenbin.zhu@mongodb.com Wenbin Zhu
              wenbin.zhu@mongodb.com Wenbin Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: