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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10, 4.0.16, 3.6.18
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Repl 2019-03-25
    • 28

      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)

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

              Created:
              Updated:
              Resolved: