The execution of convertToCapped(collName) may invalidate open change streams targeting collName

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-07-07
    • None
    • 3
    • TBD
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-85772 introduced into ConvertToCappedCoordinator new logic to clean up stale metadata that other DDLs may have left on some  local catalogs of the participants (as documented in SERVER-87010).

      The clean up is performed through the sendDropCollectionParticipantCommandToShards command, which is incorrectly submitted with the fromMigrate: false parameter. This setting has the effect of potentially generating user-visible change stream events: in particular, a participant that holds stale metadata for the targeted collection would emit a drop entry for the targeted collection, which would cause change streams opened against such a namespace to be unexpectedly invalidated.

      The problem may be addressed by just flipping the value of the fromMigrate parameter.

            Assignee:
            Paolo Polato
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: