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

XMLWordPrintableJSON

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

      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:
              Wolfee Farkas
              Reporter:
              Wolfee Farkas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: