Priority: Major - P3
Resolution: Works as Designed
Affects Version/s: 2.4.11, 2.6.8, 3.0.1
Fix Version/s: None
Create RS with two data nodes (A,B) and an arbiter.
Give A priority 2, B priority 1 -> A becomes primary
Kill A process -> B (with lower priority) becomes primary
Delete all data files from A
Connect to B and add data:
The idea is to make initial sync take some time.
Start A process as follows:
This will start A, which will come up and start initial sync. rs.initiate() command will run while initial sync is taking place. Command should fail, but it will succeed.
Command doesn’t succeed if:
- mongod reaches secondary state before rs.initiate() is called
- with default priorities
See attached log mongodb.debug.log from node A.
Customer found bug in 2.4.11. Tested with 3.0.1 and 2.6.8 – same behavior.