Skip to content

KAFKA-10645: Add null check to the array/Iterable values in RecordHeaders constructor#9518

Closed
showuon wants to merge 1 commit into
apache:trunkfrom
showuon:KAFKA-10645
Closed

KAFKA-10645: Add null check to the array/Iterable values in RecordHeaders constructor#9518
showuon wants to merge 1 commit into
apache:trunkfrom
showuon:KAFKA-10645

Conversation

@showuon

@showuon showuon commented Oct 28, 2020

Copy link
Copy Markdown
Member

In #6484, we add null check while adding headers with add() method, but we forgot to protect it while user passing the headers with null value in constructor. Add it and add tests.

Committer Checklist (excluded from commit message)

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

@showuon

showuon commented Oct 28, 2020

Copy link
Copy Markdown
Member Author

@mjsax , could you review this PR? Thanks.

@chia7712

Copy link
Copy Markdown
Member

@showuon Thanks for your patch. Is #9513 similar to your patch?

@showuon

showuon commented Oct 28, 2020

Copy link
Copy Markdown
Member Author

Yes, it's it... >.< Thanks for reminding!

@mjsax

mjsax commented Oct 29, 2020

Copy link
Copy Markdown
Member

@showuon Seems we worked on this in parallel. Sorry for that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants