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

Race in ShouldBeSafeToRetryOnStepDown test can lead to hang

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Sharding 2022-10-17
    • 14

      Currently, the global index cloner doesn't skip the clone phase after it steps up even if the current step is already beyond it. This is mostly harmless as it will end up doing no writes because all documents that needs to be fetched are already cloned. However, this can still cause it to start a transaction when reading the skip id collection. If the cleanup gets called while that transaction is still running, it will trigger SERVER-70247 and cause the transaction to stay alive even after the cloner finished. This will then cause the test to hang because the fixture will try to acquire MODE_X during destruction.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: