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

ReplBatcher thread must handle exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.4, 4.1.5
    • Fix Version/s: 4.0.6, 4.1.7
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Repl 2018-12-17
    • Linked BF Score:
      45

      Description

      The ReplBatcher thread takes a lock in OplogBufferCollection::_peek_inlock(), which is called from SyncTail::tryPopAndWaitForMore(). If the OperationContext is interrupted due to shutdown, this lock acquisition can throw. However, the ReplBatcher thread is not written to handle exceptions. The ReplBatcher either needs to handle exceptions or use an UninterruptibleLockGuard.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tess.avitabile Tess Avitabile
              Reporter:
              tess.avitabile Tess Avitabile
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: