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

Correctly handle transient errors in yield_with_drop.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-06-24
    • 0

      yield_with_drop.js FSM test is performing several concurrent  drop/re-create/createIndexes. Thus, it can happen that the router extinguish the 10 retry attempts while attempting to execute the createIndexes command.

      In particular, consider the following scenario:

      • thread_0: createIndex -> CannotImplicitelyCreateCollection
      • thread_0: createCollection -> OK
      • thread_1: dropCollection
      • thread_0: createIndex -> CannotImplicitelyCreateCollection or StaleConfig
      • thread_0: createCollection -> OK
      • thread_1 dropCollection
        etc....

      Thus, we should add both StaleConfig and CannotImplicitelyCreateCollection errors to the list of expected errors.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: