[SERVER-35588] powertest.py should call replSetReconfigure command only after successful replSetGetConfig Created: 13/Jun/18  Updated: 29/Oct/23  Resolved: 27/Jun/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.6, 4.0.1, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Matthew Russotto Assignee: Jonathan Abrahams
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.0, v3.6
Sprint: TIG 2018-07-02
Participants:
Linked BF Score: 46
Story Points: 2

 Description   

replSetReconfig is not safe to retry when there's an AutoReconnect error. If it succeeded before the network was disconnected, it will likely fail the retry.

I believe it is safe to retry the whole else-clause starting with replSetGetConfig

https://github.com/mongodb/mongo/blob/1d89d2c88bcb39045701b87612b866ae2eb49378/pytests/powertest.py#L1440

In this case, if the previous reconfig succeeded, the "if" at line 1457 will prevent attempting to reconfig again.



 Comments   
Comment by Githook User [ 02/Jul/18 ]

Author:

{'username': 'hptabster', 'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com'}

Message: SERVER-35588 powertest.py should call replSetReconfigure command only after successful replSetGetConfig

(cherry picked from commit 0fdc2e40994c930a97aa213fa990423616bc5268)
Branch: v3.6
https://github.com/mongodb/mongo/commit/ac99fe1f00339897b162d41625982298ba4eb34c

Comment by Githook User [ 02/Jul/18 ]

Author:

{'username': 'hptabster', 'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com'}

Message: SERVER-35588 powertest.py should call replSetReconfigure command only after successful replSetGetConfig

(cherry picked from commit 0fdc2e40994c930a97aa213fa990423616bc5268)
Branch: v4.0
https://github.com/mongodb/mongo/commit/b8533d84871c811573bc2c72576ee2aa51df42d8

Comment by Githook User [ 27/Jun/18 ]

Author:

{'username': 'hptabster', 'name': 'Jonathan Abrahams', 'email': 'jonathan@mongodb.com'}

Message: SERVER-35588 powertest.py should call replSetReconfigure command only after successful replSetGetConfig
Branch: master
https://github.com/mongodb/mongo/commit/0fdc2e40994c930a97aa213fa990423616bc5268

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