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

TransactionCoordinatorMetricsTest has race between transaction coordinator's lifetime and checking for log lines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0-rc5, 4.3.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.2
    • Sprint:
      Sharding 2019-08-12
    • Linked BF Score:
      22

      Description

      There is a race condition in the TransactionCoordinatorMetricsTests between when we stop capturing the test's log messages stream and the completion of the asynchronous completion of the transaction coordinator, which might not have gotten to log the slow transaction message by that time.

      In order to fix it, we should wait for the onCompletion notification on the TransactionCoordinator to fire before we stop recording the log messages.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: