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

Fix race condition of waiting for filtering metadata refresh by forcefully refresh it

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

      In theĀ dropAndRecreateTestCollection() function we wait while the _flushRoutingTableCacheUpdates internal command is present as curOp.

      However it might happen as a race condition that the operation does not show up yet when we start to wait, so we won't wait for the filtering metadata refresh at all.

      The solution is to forcefully refresh the metadata by issuing a _flushRoutingTableCacheUpdates command.

            Assignee:
            adam.farkas@mongodb.com Wolfee Farkas
            Reporter:
            adam.farkas@mongodb.com Wolfee Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: