[SERVER-14601] All "not master" errors should use the same error code Created: 17/Jul/14 Updated: 06/Dec/17 Resolved: 26/Oct/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Diagnostics, Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Sprint: | Repl 2017-10-23, Repl 2017-11-13 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
There are a few places where we uassert that we are primary that have their own specific uassert codes, rather than using the standard ErrorCodes::NotMaster. We should make all such errors use the same code so it's easier for clients and drivers to respond to such errors. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 01/Nov/17 ] |
|
Thanks Spencer! jmikola I don't think this affects the Retryable Spec but we could simplify Retryable and SDAM some day by using the code instead of the error message. |
| Comment by Githook User [ 26/Oct/17 ] |
|
Author: {'email': 'spencer@mongodb.com', 'name': 'Spencer T Brody', 'username': 'stbrody'}Message: |