Make refineCollectionShardKey use clearFilteringMetadata command on release critical section

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-03-30
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      refineCollectionShardKey relies on the release of the critical section to clear the filtering collection metadata on primary and secondary nodes, as a safeguard.
      In the authoritative model, the release of the critical section will not clear the filtering metadata, as a previous step would have installed the up-to-date version.

      As a step towards that goal, we need to first make refineCollectionShardKey use a command to clear the filtering metadata and an oplog c entry, rather than relying on the ShardServerOpObserver on deletion of the critical section document.

      This makes it easy to control via a feature flag whether a clear is needed at release time, rather than at insert time.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: