[SERVER-28376] ReplSetTest.initiate() should call awaitReplication before requesting node 0 to step up as primary Created: 17/Mar/17 Updated: 15/Aug/17 Resolved: 29/Mar/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.4.4, 3.5.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Benety Goh | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||||||||||||||
| Backport Completed: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Repl 2017-04-17 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
During ReplSetTest initialization, when elections happen while adding nodes to the replica set, it is possible for node 0 (the intended primary node after initialization) to lag the other nodes before it is asked to step up.
This may result in the step up phase of ReplSetTest,initiate() failing to elect node 0 with a "candidate's data is staler than mine" reason.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comments |
| Comment by Benety Goh [ 01/Apr/17 ] |
|
fixed build issues in backported commit |
| Comment by Githook User [ 01/Apr/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit f1fb0600a328f0792fa84bea78e368831e4af669) This backport also includes some changes to JS tests and replsettest.js from |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: Revert " This reverts commit 3f8cb1199fe9f7d83725c5f79113beb77758b574. |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit f1fb0600a328f0792fa84bea78e368831e4af669) |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 710cefca98db7c8f7736a79cebca855b99509235) |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit ff6116630ad77b2afd348bbf81c8af2eccfa8163) |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 95c7a8365964ef62be3f8af7d4e5436046e0b3b3) |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: ReplSetTest.initiateWithAnyNodeAsPrimary() (cherry picked from commit cc9c461904392d5bf71d815853d13065f6b91629) |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 0501d9eedc19ee1d4bf35525fb25d0e5a50caa49) |
| Comment by Githook User [ 31/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: This option was removed in (cherry picked from commit 2e189a57db00b291b171d5a2323700d6f57cd471) |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: ReplSetTest.initiateWithAnyNodeAsPrimary() |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 29/Mar/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: This option was removed in |