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-9192: fix NPE when for converting optional json schema in structs #7733

Merged
merged 2 commits into from
Feb 12, 2020

Conversation

levzem
Copy link
Contributor

@levzem levzem commented Nov 22, 2019

resolves the bug https://issues.apache.org/jira/browse/KAFKA-9192

line #701 will throw a NPE if jsonValue is null, if the schema was optional and the field never existed

Signed-off-by: Lev Zemlyanov lev@confluent.io

Committer Checklist (excluded from commit message)

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

@levzem
Copy link
Contributor Author

levzem commented Jan 17, 2020

@rhauch would appreciate a review!

@levzem levzem requested a review from rhauch January 18, 2020 02:10
Copy link
Contributor

@gharris1727 gharris1727 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @levzem!

@rhauch
Copy link
Contributor

rhauch commented Feb 12, 2020

@levzem this looks great, but the Kafka project has all PRs against trunk and then the committer that merges the PR will backport to older branches.

Can you please change the rebase your local branch on trunk and then either force push to this PR (changing the base branch of the PR) or create a new PR (if that's easier)? No other changes are necessary. Thanks!

@rhauch rhauch changed the base branch from 2.2 to trunk February 12, 2020 01:35
@rhauch rhauch changed the base branch from trunk to 2.2 February 12, 2020 01:35
Copy link
Contributor

@rhauch rhauch left a comment

Choose a reason for hiding this comment

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

Please rebase to trunk.

Lev Zemlyanov added 2 commits February 11, 2020 19:30
Signed-off-by: Lev Zemlyanov <lev@confluent.io>
Signed-off-by: Lev Zemlyanov <lev@confluent.io>
@levzem levzem changed the base branch from 2.2 to trunk February 12, 2020 03:32
@levzem levzem requested a review from rhauch February 12, 2020 03:32
@rhauch
Copy link
Contributor

rhauch commented Feb 12, 2020

ok to test

@rhauch rhauch merged commit c8f1ee9 into apache:trunk Feb 12, 2020
rhauch pushed a commit that referenced this pull request Feb 12, 2020
…ts (#7733)

Author: Lev Zemlyanov <lev@confluent.io>
Reviewers: Greg Harris <gregh@confluent.io>, Randall Hauch <rhauch@gmail.com>
@levzem levzem deleted the KAFKA-9192 branch February 12, 2020 21:54
rhauch pushed a commit that referenced this pull request Feb 12, 2020
…ts (#7733)

Author: Lev Zemlyanov <lev@confluent.io>
Reviewers: Greg Harris <gregh@confluent.io>, Randall Hauch <rhauch@gmail.com>
rhauch pushed a commit that referenced this pull request Feb 12, 2020
…ts (#7733)

Author: Lev Zemlyanov <lev@confluent.io>
Reviewers: Greg Harris <gregh@confluent.io>, Randall Hauch <rhauch@gmail.com>
rhauch pushed a commit that referenced this pull request Feb 12, 2020
…ts (#7733)

Author: Lev Zemlyanov <lev@confluent.io>
Reviewers: Greg Harris <gregh@confluent.io>, Randall Hauch <rhauch@gmail.com>
stanislavkozlovski pushed a commit to stanislavkozlovski/kafka that referenced this pull request Feb 18, 2020
…ts (apache#7733)

Author: Lev Zemlyanov <lev@confluent.io>
Reviewers: Greg Harris <gregh@confluent.io>, Randall Hauch <rhauch@gmail.com>
qq619618919 pushed a commit to qq619618919/kafka that referenced this pull request May 12, 2020
…ts (apache#7733)

Author: Lev Zemlyanov <lev@confluent.io>
Reviewers: Greg Harris <gregh@confluent.io>, Randall Hauch <rhauch@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants