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

Remove duplicate responses sent by offset_fetch request handler #8689

Conversation

graphcareful
Copy link
Contributor

@graphcareful graphcareful commented Feb 7, 2023

  • This request handler returns a response that contains an array of topics and within each topic, another array of partitions.

  • Within each array of partitions, a duplicate entry was being created, since push_back was invoked right after emplace_back, twice for each iteration of the loop to intitialize all partitions.

Backports Required

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

Release Notes

Bug Fixes

  • Removes duplicate responses in OffsetFetch requests

- This request handler returns a response that contains an array of
topics and within each topic, another array of partitions.

- Within each array of partitions, a duplicate entry was being created,
since push_back was invoked right after emplace_back, twice for each
iteration of the loop to intitialize all partitions.
Copy link
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@dotnwat dotnwat left a comment

Choose a reason for hiding this comment

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

nice catch

@graphcareful graphcareful merged commit 998aa31 into redpanda-data:dev Feb 7, 2023
@vshtokman
Copy link
Contributor

/backport v22.3.x

@vbotbuildovich
Copy link
Collaborator

Failed to run cherry-pick command. I executed the below command:

git cherry-pick -x 509dc8d5dd4d8d646128209e89f5676b0e86a293

Workflow run logs.

@dotnwat
Copy link
Member

dotnwat commented Feb 8, 2023

@vshtokman probably a merge conflict. author (or someone) will need to do the backport manually.

graphcareful added a commit that referenced this pull request Feb 10, 2023
[v22.3.x] Backport of #8689 Remove duplicate responses sent by offset_fetch request handler
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.

None yet

7 participants