[SERVER-43972] initial_sync_capped_index.js should check SECONDARY state before running validate Created: 11/Oct/19  Updated: 29/Oct/23  Resolved: 14/Oct/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.2, 4.0.14

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

Issue Links:
Backports
Depends
Related
is related to SERVER-42312 Validate during rollback can cause co... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0
Sprint: Repl 2019-10-21
Participants:
Linked BF Score: 14

 Description   

After SERVER-42312, we no longer allow the validate command when a node is in a RECOVERING state. We should make sure we check that a node is in SECONDARY mode before attempting to run the validate command on it.



 Comments   
Comment by Githook User [ 08/Nov/19 ]

Author:

{'name': 'Pavithra Vetriselvan', 'username': 'pvselvan', 'email': 'pavithra.vetriselvan@mongodb.com'}

Message: SERVER-43972 initial_sync_capped_index.js waits for SECONDARY state before running validate

(cherry picked from commit 4cd46444fb5eae68fe40dbbbcbddc209c2eb494f)
Branch: v4.0
https://github.com/mongodb/mongo/commit/a53094d8550957c635ce58d7e83dd6d2d64db73e

Comment by Githook User [ 08/Nov/19 ]

Author:

{'name': 'Pavithra Vetriselvan', 'username': 'pvselvan', 'email': 'pavithra.vetriselvan@mongodb.com'}

Message: SERVER-43972 initial_sync_capped_index.js waits for SECONDARY state before running validate

(cherry picked from commit 4cd46444fb5eae68fe40dbbbcbddc209c2eb494f)
Branch: v4.2
https://github.com/mongodb/mongo/commit/d912b97133f1bcb8fd64b5f3cd77853b3397052f

Comment by Githook User [ 14/Oct/19 ]

Author:

{'name': 'Pavithra Vetriselvan', 'username': 'pvselvan', 'email': 'pavithra.vetriselvan@mongodb.com'}

Message: SERVER-43972 initial_sync_capped_index.js waits for SECONDARY state before running validate
Branch: master
https://github.com/mongodb/mongo/commit/4cd46444fb5eae68fe40dbbbcbddc209c2eb494f

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