Make pre-images removal robust to featureFlagServerlessChangeStreams changes at runtime

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0, 7.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v7.0
    • QE 2023-05-15, QE 2023-05-29
    • 31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The value of featureFlagServerlessChangeStreams changes at runtime as a result of setFeatureCompatibilityVersion command. This happens at every addShard() call. As of now, change_stream_serverless_helpers::isChangeCollectionsModeActive() depends on the feature flag, so we need to audit all call sites to ensure correctness and consistency despite the current value of the feature flag. Once the feature flag is removed with SERVER-64947 the function can be refactored with SERVER-69960.

              Assignee:
              Romans Kasperovics
              Reporter:
              Romans Kasperovics
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: