[SERVER-28075] Wait for DB works in simulateSuccessfulV1ElectionAt() Created: 23/Feb/17 Updated: 05/Apr/17 Resolved: 24/Feb/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.4.3, 3.5.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Siyuan Zhou |
| 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 Requested: |
v3.4
|
||||||||
| Sprint: | Repl 2017-03-06 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 0 | ||||||||
| Description |
|
Normal synchronization between the test thread and the executor doesn't consider the DB worker thread, so we should synchronize it explicitly in tests. Otherwise, a second (very soon) election in test will change the state DB worker expects in _writeLastVoteForMyElection(). |
| Comments |
| Comment by Githook User [ 02/Mar/17 ] |
|
Author: {u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}Message: (cherry picked from commit ef78254a2bb56df2df0d346e9405df1cffb83d52) |
| Comment by Githook User [ 24/Feb/17 ] |
|
Author: {u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}Message: |