TenantOplogBatcher should transition to complete when the next batch callback is called with error status

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.1, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Repl 2021-07-12
    • 132
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      _batchRequested is not reset to false if the scheduled callback is called with a non-OK status. I think the convention of the TenantOplogBatcher is that we should reset _batchRequested to false and check for shutdown when it becomes false. This is a problem similar to SERVER-54509 but when the callback is called with an error status. This would result in server hang on stepDown when a tenant migration recipient primary is trying to join the TenantOplogApplier.

            Assignee:
            Lingzhi Deng
            Reporter:
            Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: