[SERVER-44170] Fix inconsistent state format in logging Created: 23/Oct/19 Updated: 29/Oct/23 Resolved: 01/Jul/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.1.0-rc0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Nic Cottrell | Assignee: | Mina Mahmood (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Repl 2021-06-28, Repl 2021-07-12 |
| Participants: |
| Description |
|
In parts of the code:
In others we use toString:
The second example will display the official state name from the docs wheras the first uses RS_DOWN. Other part in the same file says RS_UNKNOWN which should be UNKNOWN. The RS_ prefix is the enum label. Since this is already inconsistent I don't see any major compatibility risks in fixing this. |
| Comments |
| Comment by Vivian Ge (Inactive) [ 06/Oct/21 ] |
|
Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you! |
| Comment by Githook User [ 25/Jun/21 ] |
|
Author: {'name': 'Mina Mahmood', 'email': 'mina.mahmood@mongodb.com'}Message: |
| Comment by Mina Mahmood (Inactive) [ 17/Jun/21 ] |
| Comment by Carl Champain (Inactive) [ 23/Oct/19 ] |
|
Thanks for the report. Kind regards, |