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] [CORE-2461] c/topics: use topic table revision to detect changes in generator #17981

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #17975

Topic table partition generator is a simple helper to asynchronously
iterate over a topic table which may have a lot of elements. The
generator validates if `topic_table` changed while the loop yield for
the other tasks. The check was incorrect as it was validating the topic
table revision which is updated after the snapshot is applied.

Fixed the issue by validating it `_topics_map_revision` changed during
the scheduling point.

Fixes: #core-internal/1259

Signed-off-by: Michał Maślanka <michal@redpanda.com>
(cherry picked from commit 14726e2)
@vbotbuildovich vbotbuildovich added this to the v23.2.x-next milestone Apr 22, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 22, 2024
@mmaslankaprv mmaslankaprv merged commit ecea599 into redpanda-data:v23.2.x Apr 22, 2024
23 checks passed
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

2 participants