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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.0-rc5, 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Sharding 2019-08-12
    • 22
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Kaloian Manassiev
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: