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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.1, 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Repl 2021-07-12
    • 132

    Description

      _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.

      Attachments

        Issue Links

          Activity

            People

              lingzhi.deng@mongodb.com Lingzhi Deng
              lingzhi.deng@mongodb.com Lingzhi Deng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: