[SERVER-48919] dont_read_oplog_hole_on_step_up.js should wait until primary is writable Created: 17/Jun/20  Updated: 29/Oct/23  Resolved: 18/Jun/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.0-rc11, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
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
Backport Requested:
v4.4, v4.2
Sprint: Execution Team 2020-06-29
Participants:
Linked BF Score: 8

 Description   

This test only waits for the node transitions to primary, but not after it starts accepting writes. This causes the test to fail intermittently.

We should add something like this to ensure the node is writable:

assert.soon(() => newPrimary.adminCommand({isMaster: 1}).ismaster);



 Comments   
Comment by Githook User [ 17/Jun/20 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-48919 dont_read_oplog_hole_on_step_up.js should wait until primary is writable

(cherry picked from commit 6947b03638c1c3ed0fe76c579c1b27725933cf09)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c575ff0c457eed75fb8c472980aac6b7ceeb304f

Comment by Githook User [ 17/Jun/20 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-48919 dont_read_oplog_hole_on_step_up.js should wait until primary is writable
Branch: master
https://github.com/mongodb/mongo/commit/6947b03638c1c3ed0fe76c579c1b27725933cf09

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