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

Test for blocking queue should not test for non-guaranteed condition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.10, 4.0.16, 3.6.18
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Repl 2019-03-25
    • Linked BF Score:
      28

      Description

      There is a test for the utility class BlockingQueue in mongodb/src/mongo/dbtests/basictests.cpp which tests to make sure a pop on an empty queue doesn't take too long. However, the class provides no such guarantee; under load, the pop may take an arbitrary amount of time. We should remove that check.

      (this is on replication because the only user of this class is the OplogBufferBlockingQueue)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matthew.russotto Matthew Russotto
              Reporter:
              matthew.russotto Matthew Russotto
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: