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

reactor: update lowres_clock when max_task_backlog is exceeded #2240

Conversation

raphaelsc
Copy link
Member

lowres_clock promises task_quota resolution, but we forgot to update lowres_clock when first, there's a need to preempt and second, max_task_backlog is exceeded. all tasks that follow until backlog reduces below max target, will find lowres_clock with "now" time as of beginning of run_tasks() execution, despite multiple task quotas may have passed since then.

lowres_clock promises task_quota resolution, but we forgot to update
lowres_clock when first, there's a need to preempt *and* second,
max_task_backlog is exceeded. all tasks that follow until backlog
reduces below max target, will find lowres_clock with "now" time as
of beginning of run_tasks() execution, despite multiple task quotas
may have passed since then.

Signed-off-by: Raphael S. Carvalho <[email protected]>
@raphaelsc raphaelsc requested a review from avikivity May 12, 2024 13:52
@avikivity avikivity merged commit 5de9d95 into scylladb:master May 12, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants