Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59152

Make range deletion submission resilient to onShardVersionMismatch exceptions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: 5.1.0, 5.0.2
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding EMEA 2021-08-09
    • 146
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      With the partially wrong changes introduced in SERVER-48883, it was wrongly assumed that onShardVersionMismatch would never fail with exceptions different from NamespaceNotFound.

      As this is definitely not the case, the range deletion task submission is failing and not retried in case any other exception is thrown.

      A possible way to fix the problem would be calling onShardVersionMismatch within a retryIdempotentWorkAsPrimaryUntilSuccessOrStepdown.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: