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

Fix error where mongos returns CallbackCanceled and not InterruptedAtShutdown on shutdown

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.2.20
    • None
    • None
    • Fully Compatible
    • ALL
    • 44

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              andrew.witten@mongodb.com Andrew Witten
              andrew.witten@mongodb.com Andrew Witten
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: