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

[v22.3.x] Soft assert on different sizes of shard_fetch collections #10701

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #10677

dlex added 2 commits May 11, 2023 19:20
When the `shard_fetch` collections (results, responses, and metrics)
get to `fill_fetch_responses`, soft assert the invariant that
they have to be the same size. If they are not, only process
the common subset of those. That may result in empty fetch responses,
which is bad, but probably better than segfaulting.

(cherry picked from commit e51f674)
Soft assert the invariant the `shard_fetch` collections
(requests, responses, and metrics) have to be the same size.

Hard assert in `empty()` is converted into a soft assert, and
the function is actually used in `handle_shard_fetch()`
(it was unused before that).

(cherry picked from commit ab4f049)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone May 11, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 11, 2023
Copy link
Contributor

@dlex dlex left a comment

Choose a reason for hiding this comment

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

veriufied as identical to #10677

@dlex dlex marked this pull request as ready for review May 12, 2023 01:04
@dlex dlex merged commit 6c270a3 into redpanda-data:v22.3.x May 12, 2023
8 checks passed
@piyushredpanda piyushredpanda modified the milestones: v22.3.x-next, v22.3.19 May 12, 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

3 participants