[SERVER-27892] Clarify locking rules for _canAcceptNonLocalWrites and _canServeNonLocalReads Created: 02/Feb/17 Updated: 28/Jan/21 Resolved: 06/Oct/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Repl 2017-03-06, Repl 2017-03-27, Repl 2017-04-17, Repl 2017-05-08, Repl 2017-05-29, Repl 2017-06-19, Repl 2017-07-31, Repl 2017-08-21, Repl 2017-09-11, Repl 2017-10-02, Repl 2017-10-23 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comments |
| Comment by Shane Harvey [ 28/Jan/21 ] | ||
|
I'm doing a bit of error code research for DRIVERS-1152 and discovered this change improved mapReduce error reporting when mistakenly executing a non-inline mapReduce command on a secondary. Before this change (on MongoDB <=3.4) the secondary would return this generic error without an error code:
After this change (on MongoDB >=3.6) the secondary returns PrimarySteppedDown with an error code:
| ||
| Comment by Githook User [ 06/Oct/17 ] | ||
|
Author: {'email': 'spencer@mongodb.com', 'name': 'Spencer T Brody', 'username': 'stbrody'}Message: | ||
| Comment by Githook User [ 04/Oct/17 ] | ||
|
Author: {'email': 'spencer@mongodb.com', 'name': 'Spencer T Brody', 'username': 'stbrody'}Message: | ||
| Comment by Githook User [ 21/Mar/17 ] | ||
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: | ||
| Comment by Spencer Brody (Inactive) [ 23/Feb/17 ] | ||
|
Note, stepdown command currently takes global lock in S mode - this is needed in order to allow secondaries to continue catching up as the stepdown is pending. |