Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v23.2.x] Fix observed window drift in usage based billing #12835

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #12780

- When clock drift occurred, window should be dropped and new window
opened at next interval, however the logic was dropping the current
window and starting a new window at the drifted time

(cherry picked from commit 6d92875)
- The window close timer for usage based filling was not closing when it
normally should because it was taking timestamps from the lowres clock
instead of the lowres_system_clock

- Fixes: redpanda-data#12678

(cherry picked from commit a87f89b)
- This high threshold value was covering up clock skew issues in unit
tests. Lowering this value will reduce the amount of drift required to
trigger some error

(cherry picked from commit 56f31cf)
- Adds additional assertions that the clock delta is always 0s, as there
should be no reason the timer fires later or earlier then exactly when
configured to.

(cherry picked from commit eb6c188)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Aug 16, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Aug 16, 2023
@graphcareful graphcareful self-requested a review August 16, 2023 01:55
@graphcareful graphcareful marked this pull request as ready for review August 16, 2023 01:55
@piyushredpanda piyushredpanda merged commit 807ea30 into redpanda-data:v23.2.x Aug 16, 2023
26 checks passed
@BenPope BenPope modified the milestones: v23.2.x-next, v23.2.6 Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants