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

Update invalidated_cursors.js FSM test to handle additional createIndex errors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • 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

      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@mongodb.com Enrico Golfieri
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: