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

Make direct_connection_auth_transition resilient to unknown filtering information

    • 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
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-10-28
    • 0

      In the direct_connection_auth_transition test, we create a collection and then run inserts on that collection while adding a shard and moving a collection to ensure that once the second shard is added, all inserts fail with Unauthorized errors due to being direct connections.

      However, when run in allFeatureFlag variants, the initial create of the collection will create a tracked, unsharded collection. Due to SERVER-80135, this create may leave the collection with unknown filtering information. Any inserts done after the second shard is added will fail with Unauthorized, still, but any inserts done before this will fail with StaleConfig.

      The test should ensure that the filtering information is known before beginning the insert thread so as not to encounter staleconfig errors.

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: