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

MINOR: Don't allow cloning a ProducerStateEntry with a different producer id #18990

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

BewareMyPower
Copy link

The ProducerStateEntry has been refactored several times and now ProducerAppendInfo#updatedEntry is created by calling the withProducerIdAndBatchMetadata on currentEntry. However, this method is confusing because the 1st parameter is the producer id, which means this method could be used to create updatedEntry with a different producer id with currentEntry. However, this case should never happen.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community storage Pull requests that target the storage module small Small PRs labels Feb 21, 2025
@BewareMyPower BewareMyPower force-pushed the minor-refactor-updated-entry branch from fa85a56 to 0d9492b Compare February 21, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Small PRs storage Pull requests that target the storage module triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant