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] k/protocol: Checking for tag value to be 0 #11647

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #11443
Fixes #11646,

Tag fields that are primitives should not be encoded if their value is
equal to 0.

Fixes: redpanda-data#11358

Signed-off-by: Michael Boquard <michael@redpanda.com>
(cherry picked from commit 5991376)
We shouldn't crash if we parse an unknown error code.

Signed-off-by: Michael Boquard <michael@redpanda.com>
(cherry picked from commit 90de7ca)
@vbotbuildovich vbotbuildovich added this to the v22.3.x-next milestone Jun 23, 2023
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jun 23, 2023
@michael-redpanda michael-redpanda marked this pull request as ready for review June 23, 2023 17:44
Copy link
Contributor

@NyaliaLui NyaliaLui left a comment

Choose a reason for hiding this comment

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

@michael-redpanda looks like there's some compile errors here in src/v/kafka/protocol/errors.cc

Signed-off-by: Michael Boquard <michael@redpanda.com>
(cherry picked from commit e77a935)
@michael-redpanda michael-redpanda force-pushed the backport-pr-11443-v22.3.x-296 branch from 9e034a2 to bfcd287 Compare June 26, 2023 14:10
@michael-redpanda
Copy link
Contributor

Force push bfcd287:

  • added missing typename that was required in clang14 but wasn't in clang16
  • replaced kafka::protocol::decoder with older kafka::request_reader (same with encode/request_writer)
  • ran clang14 format

@michael-redpanda michael-redpanda merged commit 5ec54be into redpanda-data:v22.3.x Jun 27, 2023
@BenPope BenPope modified the milestones: v22.3.x-next, v22.3.23 Aug 17, 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.

4 participants