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

VectorClockConfigServerTest suffers interference from DistLockManagerImpl

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding 2020-06-15
    • 0

    Description

      Although VectorClockConfigServerTest inherits from ConfigServerTestFixture, its tests assume that nothing else is ticking the ClusterTime. However, ConfigServerTestFixture installs an actual DistLockManager, which spawns a ReplSetDistLockPinger thread that performs writes, thereby ticking ClusterTime. If the timing is such that these writes happen before/during the VectorClockConfigServerTest tests, they can cause the tests to fail. Therefore VectorClockConfigServerTest should install a mock DistLockManager.

      Attachments

        Activity

          People

            kevin.pulo@mongodb.com Kevin Pulo
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: