Sharded clusters do not respect reason field in setUserWriteBlockMode

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-05-11
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      slack

      Impact: # Scenario: Mongosync clears a Mongotune DWB block

        1. Disk utilization is high.
        2. Mongotune blocks.
        3. Mongosync starts cluster migration and blocks.
        4. Mongosync completes cluster migration and unblocks.
        5. Node disk becomes overloaded and crashes (existing behavior).
      1. Scenario: Mongotune clears a Mongosync block
        1. Mongosync starts cluster migration and blocks.
        2. Disk utilization is high.
        3. Mongotune blocks.
        4. Auto-scaling activates and disk size increases.
        5. Mongotune unblocks.
        6. The node may begin accepting writes that mongosync assumes are blocked, risking migration correctness (unexpected writes to the destination outside the supported cutover flow).

      Questions: # Could this cause data corruption?

      1. If this event were to occur is it recoverable?
      2. Is this worth the availability improvement?
      3. Can we mitigate these scenarios by documenting the risk of cluster migration if disk utilization is already high?

            Assignee:
            Anna Maria Nestorov
            Reporter:
            Joseph Livni
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: