[SERVER-46195] Secondary in rollback_after_enabling_majority_reads.js goes into rollback before validate command Created: 14/Feb/20  Updated: 29/Oct/23  Resolved: 07/Apr/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.6, 4.0.19, 4.7.0

Type: Bug Priority: Major - P3
Reporter: Xuerui Fa Assignee: Xuerui Fa
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.4, v4.2, v4.0
Sprint: Repl 2020-03-23, Repl 2020-04-06, Repl 2020-04-20
Participants:
Linked BF Score: 5

 Description   

In rollback_after_enabling_majority_reads.js, we first verify that we fassert if we do a rollback immediately after upgrading enableMajorityReadConcern to true. Then, we restart the node and verify that it reaches SECONDARY state. However, after we verify that the node has fully restarted, it seems possible for the node to go into ROLLBACK (if, for instance, the source's last oplog entry was early than our first oplog entry). This would cause the verify command on the next line to fail.



 Comments   
Comment by Githook User [ 28/Apr/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-46195: Ensure rollback completes before validate command in rollback_after_enabling_majority_reads.js

(cherry picked from commit 85c88cbaa6b16b00d92e502e9d72ccb2f15321de)
Branch: v4.0
https://github.com/mongodb/mongo/commit/e3ee1df650f6a38bca6691c7b9cba1c5fbc56a11

Comment by Githook User [ 22/Apr/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-46195: Ensure rollback completes before validate command in rollback_after_enabling_majority_reads.js

(cherry picked from commit 85c88cbaa6b16b00d92e502e9d72ccb2f15321de)
Branch: v4.2
https://github.com/mongodb/mongo/commit/3ce96de97cdf4babf61e340cfad694e7c7d7ba85

Comment by Githook User [ 22/Apr/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-46195: Ensure rollback completes before validate command in rollback_after_enabling_majority_reads.js

(cherry picked from commit 85c88cbaa6b16b00d92e502e9d72ccb2f15321de)
Branch: v4.4
https://github.com/mongodb/mongo/commit/1fc34192dac2d8769e10d463cf6fdf1569cac539

Comment by Githook User [ 07/Apr/20 ]

Author:

{'name': 'Xuerui Fa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-46195: Ensure rollback completes before validate command in rollback_after_enabling_majority_reads.js
Branch: master
https://github.com/mongodb/mongo/commit/85c88cbaa6b16b00d92e502e9d72ccb2f15321de

Comment by Githook User [ 20/Mar/20 ]

Author:

{'email': 'xuerui.fa@mongodb.com', 'name': 'Xuerui Fa', 'username': 'XueruiFa'}

Message: Revert "SERVER-46195: Hang secondary before validate command in rollback_after_enabling_majority_reads.js"

This reverts commit 1909cd159e4b0b3678513c8e3f83286051148b99.
Branch: v4.0
https://github.com/mongodb/mongo/commit/49fd4f482bf07f2c0131c7779235ddcb778a5f25

Comment by Githook User [ 17/Mar/20 ]

Author:

{'email': 'xuerui.fa@mongodb.com', 'name': 'Xuerui Fa', 'username': 'XueruiFa'}

Message: SERVER-46195: Hang secondary before validate command in rollback_after_enabling_majority_reads.js
Branch: v4.0
https://github.com/mongodb/mongo/commit/1909cd159e4b0b3678513c8e3f83286051148b99

Comment by Steven Vannelli [ 24/Feb/20 ]

For BF Friday

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