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

disable_cluster_time_gossiping_in_unreadable_state.js shouldn't modify a response's $clusterTime

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v5.0, v4.4, v4.2, v4.0
    • Sharding 2021-07-12
    • 0

    Description

      disable_cluster_time_gossiping_in_unreadable_state.js intentionally sends an invalid cluster time and does so by changing the timestamp of a received valid cluster time. The valid time is taken from the response of a previous command so it is the same object captured by the session when processing that response. This leads the next command on that session to gossip the invalid time and can trigger an unexpected LogicalTimeMismatch error if a greater time has not already been validated by the server. To avoid this, the test should make a copy of the response's $clusterTime and modify that instead.

      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: