Correctly handle transient errors in yield_with_drop.js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: