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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: