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

KAFKA-18461; Fix potential NPE in setDelta after map is erased #18684

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

Conversation

leaf-soba
Copy link

Addressed an issue where calling setDelta on a Snapshot could result in a NullPointerException if the map was set to null during the erase operation. This fix ensures that setDelta handles the scenario appropriately to prevent unexpected behavior.

Committer Checklist (excluded from commit message)

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

Addressed an issue where calling `setDelta` on a `Snapshot` could result in a `NullPointerException` if the `map` was set to `null` during the `erase` operation.
This fix ensures that `setDelta` handles the scenario appropriately to prevent unexpected behavior.
@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Jan 24, 2025
@ijuma ijuma requested review from jsancio and cmccabe January 24, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Kafka Broker small Small PRs triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant