Limit retry attempts in _recoverCollectionMetadataFromDisk recovery loop

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-04-27
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Add a configurable retry limit to the while (true) loop in _recoverCollectionMetadataFromDisk. The three continue sites (joining a concurrent critical section/refresh, a failed initial pass, and an invalidating oplog entry during drain) should all count toward the cap.

      Once exhausted, fail with a clear error that propagates to router or shard role loop, which can retry at a higher level. Log at higher severity when approaching or exceeding the limit.

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

              Created:
              Updated:
              Resolved: