[SERVER-50626] Race in read_concern_majority_getmore_secondaries.js Created: 28/Aug/20  Updated: 29/Oct/23  Resolved: 01/Sep/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.7.0, 4.2.10, 4.4.2, 4.0.21

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-50668 Refactor JS tests that enable rsSyncA... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2, v4.0, v3.6
Sprint: Repl 2020-09-07
Participants:
Linked BF Score: 50

 Description   

The test stops replication on two secondaries using the rsSyncApplyStop failpoint, then writes to the primary. It assumes that these writes will not be majority committed. However, it's possible for one or more secondaries to continue replicating and acknowledging writes until they notice the failpoint has been set. Let's use the waitForFailPoint command to ensure replication has really stopped before executing the writes that we don't want committed.



 Comments   
Comment by Githook User [ 09/Sep/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-50626 Fix race in read_concern_majority_getmore_secondaries.js

(cherry picked from commit b5467de6410d61c77adc352df0291805df816f7d)
Branch: v4.4
https://github.com/mongodb/mongo/commit/9cdf66a3fb6abb028986f50d45d4cd81775da042

Comment by Githook User [ 08/Sep/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-50626 Fix race in read_concern_majority_getmore_secondaries.js

(cherry picked from commit b5467de6410d61c77adc352df0291805df816f7d)
Branch: v4.2
https://github.com/mongodb/mongo/commit/42fe3ecc796641501f796850863dcfcd06c9febf

Comment by Githook User [ 08/Sep/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-50626 Fix race in read_concern_majority_getmore_secondaries.js

(cherry picked from commit b5467de6410d61c77adc352df0291805df816f7d)

  1. Conflicts:
  2. jstests/replsets/read_concern_majority_getmore_secondaries.js
    Branch: v4.0
    https://github.com/mongodb/mongo/commit/d04d8bd5c002fd9d4728b1a2525b450473a15971
Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-50626 Fix race in read_concern_majority_getmore_secondaries.js
Branch: master
https://github.com/mongodb/mongo/commit/b5467de6410d61c77adc352df0291805df816f7d

Generated at Thu Feb 08 05:23:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.