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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.8, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • v5.0, v4.4
    • Repl 2021-07-12

      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.

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

              Created:
              Updated:
              Resolved: