ahuang98 commented on PR #17139:
URL: https://github.com/apache/kafka/pull/17139#issuecomment-2588443175

   > - Since the calls to measure determine when TimeRatio resets the interval 
it's tracking, that means poll intervals can intersect with the measurement 
interval boundary, which means TimeRatio has to throw some values away (e.g. 
because a poll started before the current measurement interval but completed 
within it). 
   
   I see, this was hard to visualize, but is the issue essentially - if poll() 
was called at time=10, TimeRatio.measure() called at time=20, and poll had not 
completed yet, the 10 ongoing seconds of polling time will not accounted for in 
the calculated ratio. It is actually treated as non-polling time as well?
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to