aidar-st opened a new pull request, #10348:
URL: https://github.com/apache/pinot/pull/10348

   # Description
   For tables that have high number of segments PERCENT_SEGMENTS_AVAILABLE 
reports 100% availability despite a few replicas being offline. Caused by 
rounding down `(nOffline * 100 / nSegments)` to `int` before subtraction from 
100. 
   
   This PR changes metric logic to properly round down 
PERCENT_SEGMENTS_AVAILABLE and report 99% availability in such scenarios.
   
   # Testing
   - Added unit test to verify
    
   


-- 
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]

Reply via email to