Skip to content

Conversation

@ztlpn
Copy link
Contributor

@ztlpn ztlpn commented Jan 9, 2025

When installing a controller snapshot or creating a topic with many partitions, the number of pending deltas can grow quite large. Notify waiters in batches to avoid stalls. This should also fix the problem with controller_backend notification handler that will spawn a lot of ready tasks if the task quota is exceeded.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

@vbotbuildovich
Copy link
Collaborator

CI test results

test results on build#60552
test_id test_kind job_url test_status passed
rm_stm_tests_rpunit.rm_stm_tests_rpunit unit https://buildkite.com/redpanda/redpanda/builds/60552#01944d67-4352-4009-bdef-0187a88e71ce FLAKY 1/2

When installing a controller snapshot or creating a topic with many
partitions, the number of pending deltas can grow quite large. Notify
waiters in batches to avoid stalls. This should also fix the problem
with controller_backend notification handler that will spawn a lot of
ready tasks if the task quota is exceeded.
Copy link
Contributor

@bashtanov bashtanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a quick glance on the subscribers, it doesn't look like any of them rely on notifications being consistent with the current state. See comments for some concerns/suggestions regarding iteration.

@bashtanov bashtanov self-requested a review January 13, 2025 16:36
@ztlpn ztlpn merged commit f7dfb80 into redpanda-data:dev Jan 13, 2025
17 checks passed
@ztlpn ztlpn deleted the tt-yield-notify branch January 13, 2025 19:03
@vbotbuildovich
Copy link
Collaborator

/backport v24.3.x

@vbotbuildovich
Copy link
Collaborator

/backport v24.2.x

@vbotbuildovich
Copy link
Collaborator

Failed to create a backport PR to v24.2.x branch. I tried:

git remote add upstream https://github.com/redpanda-data/redpanda.git
git fetch --all
git checkout -b backport-pr-24761-v24.2.x-186 remotes/upstream/v24.2.x
git cherry-pick -x 6263550825

Workflow run logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants