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

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

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

      _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@mongodb.com Lingzhi Deng
            Reporter:
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: