[SERVER-42024] shards_and_config_return_last_committed_optime.js shouldn't assume opTime in response equals opTime in metadata Created: 01/Jul/19  Updated: 29/Oct/23  Resolved: 02/Jul/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.0.11, 4.2.0-rc3, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Sharding 2019-07-15
Participants:
Linked BF Score: 12

 Description   

shards_and_config_return_last_committed_optime.js runs replSetGetStatus and asserts the last committed opTime timestamp in the response's body equals the last committed opTime metadata field in the response, which may not be true if the last committed opTime advances between executing the command and computing its metadata. The test should assert the last committed opTime in the metadata is >= the opTime in the response body instead.



 Comments   
Comment by Githook User [ 11/Jul/19 ]

Author:

{'name': 'Jack Mulrow', 'username': 'jsmulrow', 'email': 'jack.mulrow@mongodb.com'}

Message: SERVER-42024 Fix opTime race in shards_and_config_return_last_committed_optime.js

(cherry picked from commit 47c4ce9e44df98b6b5c2586c73f6b25e29722414)
Branch: v4.0
https://github.com/mongodb/mongo/commit/203710762287e17248bf5851254725647bb3041e

Comment by Githook User [ 11/Jul/19 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-42024 Fix opTime race in shards_and_config_return_last_committed_optime.js

(cherry picked from commit 47c4ce9e44df98b6b5c2586c73f6b25e29722414)
Branch: v4.2
https://github.com/mongodb/mongo/commit/1ed216bc95b6f6b75a3d02161312671745f8c974

Comment by Githook User [ 02/Jul/19 ]

Author:

{'name': 'Jack Mulrow', 'username': 'jsmulrow', 'email': 'jack.mulrow@mongodb.com'}

Message: SERVER-42024 Fix opTime race in shards_and_config_return_last_committed_optime.js
Branch: master
https://github.com/mongodb/mongo/commit/47c4ce9e44df98b6b5c2586c73f6b25e29722414

Generated at Thu Feb 08 04:59:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.