Skip to content

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

Closed
showuon wants to merge 1 commit intoapache: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 intoapache:trunkfrom
showuon:KAFKA-10645

Conversation

@showuon
Copy link
Copy Markdown
Member

@showuon showuon commented Oct 28, 2020

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
Copy link
Copy Markdown
Member Author

showuon commented Oct 28, 2020

@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
Copy link
Copy Markdown
Member Author

showuon commented Oct 28, 2020

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

@mjsax
Copy link
Copy Markdown
Member

mjsax commented Oct 29, 2020

@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