rjgoyln opened a new pull request, #12184: URL: https://github.com/apache/ozone/pull/12184
## What changes were proposed in this pull request? `testEndpoint` sometimes fails with `Expecting actual: 0L to be greater than: 0L` on `lastCheckpointCreationTimeTaken`. `DBCheckpointServlet` records checkpoint creation and streaming times in whole milliseconds, so a checkpoint of the small mini-cluster OM DB can record a valid 0 on a fast runner. Same fix as HDDS-17849 (#12078): - Set both timing metrics to `-1` before each endpoint call. - Assert `>= 0` afterwards instead of `> 0`. The sentinel keeps the test failing when the servlet does not set a metric, and resetting it per call stops the GET call in `testWithoutACL` from passing on the POST call's values. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17918 ## How was this patch tested? - `TestOMDbCheckpointServlet` passes locally; checkpoints take 8-12 ms here, so the 0 ms case did not reproduce. - Removing either metric setter from `DBCheckpointServlet` makes the test fail on `-1`. CI: https://github.com/rjgoyln/ozone/actions/runs/45992141085 Generated-by: Claude Code (Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
