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

logical_time_metadata.js shouldn't assume lastApplied opTime equals $clusterTime

    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Sharding 2019-07-15
    • 22

      logical_time_metadata.js runs replSetGetStatus and asserts the timestamp of the lastApplied opTime returned will exactly equal the $clusterTime timestamp in the response's metadata. The metadata is generated after the command's execution, and it's possible concurrent activity (like an index build for the config.cache collections) advances the latest cluster time before metadata is computed, leading $clusterTime to be greater than the returned lastApplied opTime.

      To handle this, the test should be updated to assert $clusterTime is >= the lastApplied opTime.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: