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

Fix error where mongos returns CallbackCanceled and not InterruptedAtShutdown on shutdown

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.20
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 44

      The test retryable_mongos_write_errors.js does the following:
      1. Set failpoint hangAfterCollectionInserts so that inserts never complete.
      2. Initiate a batch insert (which won't complete).
      3. Stop the mongos.
      4. Assert that the returned error code is InterruptedAtShutdown (which is retryable).

      We have a bug where the returned error code is CallbackCanceled. Additionally, CallbackCanceled is not being returned as a top level error. Instead it is being written into the writeErrors field of the response. SERVER-55648 indicates that it should be a top-level error. We should fix this.

      This is an issue in version 4.2.x.

            Assignee:
            andrew.witten@mongodb.com Andrew Witten (Inactive)
            Reporter:
            andrew.witten@mongodb.com Andrew Witten (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: