bug(throttle): incorrectly usage of RateLimiter::check
#19930
Labels
type/bug
Something isn't working
Milestone
RateLimiter::check
#19930
Describe the bug
With crate
governor
, theRateLimiter::check
function also updates the quota.https://docs.rs/governor/latest/src/governor/state/direct.rs.html#75-82
However, in RisingWave, we are using it to check if the rate limiter can allow the current row without willing to update the quota. In this case, the real throughput is lower than expected.
Error message/log
No response
To Reproduce
No response
Expected behavior
No response
How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: