[SERVER-46554] Wrong "next id" shown with "EXCESSIVE SKIPPING OF ERROR CODES" message Created: 03/Mar/20  Updated: 27/Oct/23  Resolved: 15/Apr/20

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Spencer Brody (Inactive)
Resolution: Gone away Votes: 0
Labels: servicearch-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-36103 prevent excessive error code skipping Closed
Operating System: ALL
Participants:

 Description   

In SERVER-36103 we added a check to errorcodes.py that no error code is larger than some globally-defined maximum. If this check fails, however, errorcodes.py gives bad instructions.

For example, if MAXIMUM_CODE is 99, the highest error code currently used is 50, and I add an error code 1000, errorcodes.py prints:

EXCESSIVE SKIPPING OF ERROR CODES:
{{ file.cpp:68:25:fassert(1000}}
next id to use: 1001

It should instead print the next id to use, which is 51 in this example.



 Comments   
Comment by Spencer Brody (Inactive) [ 15/Apr/20 ]

This check was removed entirely in SERVER-46179

Generated at Thu Feb 08 05:11:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.