[SERVER-21428] Enable enumeration of codes contained in ErrorCodes class Created: 12/Nov/15  Updated: 05/Apr/17  Resolved: 22/Feb/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.5.4

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Samantha Ritter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-27950 Add SocketException to the list of Ne... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-03-06
Participants:

 Description   

the ErrorCodes class generated from error_codes.err error_class should enable an enumeration of the codes.

In particular currently isNetworkError and isNotMasterError error codes enumerated explicitly inside ShardRegistry::runCommandOnConfigWithRetries. If the set of codes in those classes change, that method will also need to be updated.

Until this ticket is fixed need to keep them consistent manually.



 Comments   
Comment by Githook User [ 22/Feb/17 ]

Author:

{u'username': u'samantharitter', u'name': u'samantharitter', u'email': u'samantha.ritter@10gen.com'}

Message: SERVER-21428 Replace outdated warning comment in error code file
Branch: master
https://github.com/mongodb/mongo/commit/5d9c2f7bbba6bc2766bc05e6b64ef6ca9041b940

Comment by Samantha Ritter (Inactive) [ 15/Feb/17 ]

It looks like this issue was fixed by SERVER-23213, and all that remains is to remove the warning comments in our code that reference this ticket.

Comment by Justin Cohler [ 13/Dec/16 ]

misha.tyulenev - can you provide more context on this ticket? We do not feel we have enough information to prioritize this issue.

Generated at Thu Feb 08 03:57:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.