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

createCollection Coordinator might clear the filtering metadata without holding the critical section

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-06-10, CAR Team 2024-06-24, CAR Team 2024-07-08
    • 200
    • 2

      What's the problem?

      The real issue is that we are clearing the filtering metadata without actually holding the recoverable critical section. This mostly happens in DDL coordinators: it could happen that the phase that releases the critical section is retried but the critical section was already released. In this case, we shouldn't clear the filtering metadata (e.g. here) because it was done before.
      Note that this is not just a problem of that command but potentially it affects other DDL operations. Any DDL that has a phase that 1) clears the filtering metadata and 2) releases the critical section might be affected as well. 

      Solutions
      A potential solution would be to clear the filtering metadata on primaries and secondaries when releasing the critical section. Right now we are only doing on secondaries.

            Assignee:
            paolo.polato@mongodb.com Paolo Polato
            Reporter:
            sergi.mateo-bellido@mongodb.com Sergi Mateo Bellido
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: