Update invalidated_cursors.js FSM test to handle additional createIndex errors

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.4
    • Affects Version/s: 8.1.0-rc0, 8.0.0-rc20
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-09-16, CAR Team 2024-09-30
    • 0
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The fsm test jstests/concurrency/fsm_workloads/query/invalidated_cursors.js performs createIndex and accepts the following erros as possible results due to concurrent operations.

      In case of continuos dropDatabase, the createIndex has been proven to possibly fail with cannoImplictlyCreateCollections. The exception is thrown when the collection does not exists  and is managed internally by the router up to 10 retries. As any other exception, cannoImplictlyCreateCollections still consumes one attempt, and concurrent dropDatabase might be causing the exception to happen often enough to be reported to the user. 

      For the same reason, we could be possibly fail with StaleConfig. 

      The test should adds to the accepted errors: StaleConfig, cannoImplictlyCreateCollections 

              Assignee:
              Enrico Golfieri
              Reporter:
              Enrico Golfieri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: