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

VectorClockConfigServerTest suffers interference from DistLockManagerImpl

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

      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.

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

              Created:
              Updated:
              Resolved: