Skip to content

MINOR: Fix null exception in coordinator log #10250

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

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

dengziming
Copy link
Member

@dengziming dengziming commented Mar 3, 2021

More detailed description of your change
Found that the fatalException is always null when calling log.info("xxx", fatalException), maybe we should first assign a value to it.

Summary of testing strategy (including rationale)
Test locally.

from

[2021-03-03 10:18:06,203] INFO FindCoordinator request hit fatal exception (org.apache.kafka.clients.consumer.internals.AbstractCoordinatorTest$DummyCoordinator:260)

to

[2021-03-03 10:17:37,123] INFO FindCoordinator request hit fatal exception (org.apache.kafka.clients.consumer.internals.AbstractCoordinatorTest$DummyCoordinator:260)
org.apache.kafka.common.errors.AuthenticationException: Authentication failed

Committer Checklist (excluded from commit message)

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

@dengziming
Copy link
Member Author

@ableegoldman PTAL.

Copy link
Member

@ableegoldman ableegoldman left a comment

Choose a reason for hiding this comment

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

Oh man, that's a stupid bug. Thanks for catching this -- we should also cherrypick this to 2.6, 2.7, & 2.8 (cc @vvcephei)

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@dengziming Nice cache. +1

@ableegoldman
Copy link
Member

One unrelated test failure which is known to be flaky: TransactionsBounceTest.testWithGroupMetadata

@ableegoldman
Copy link
Member

@chia7712 do you want to merge this? We should also cherrypick it all the way back to 2.6

@chia7712
Copy link
Member

chia7712 commented Mar 3, 2021

do you want to merge this? We should also cherrypick it all the way back to 2.6

Sure. will merge and backport this patch.

@chia7712 chia7712 merged commit cfb6006 into apache:trunk Mar 3, 2021
chia7712 pushed a commit that referenced this pull request Mar 3, 2021
chia7712 pushed a commit that referenced this pull request Mar 3, 2021
chia7712 pushed a commit that referenced this pull request Mar 3, 2021
ijuma added a commit to ijuma/kafka that referenced this pull request Mar 3, 2021
* apache-github/trunk:
  KAFKA-12400: Upgrade jetty to fix CVE-2020-27223
  MINOR: Fix null exception in coordinator log (apache#10250)
  y
  KAFKA-12375: don't reuse thread.id until a thread has fully shut down (apache#10215)
  KAFKA-12177: apply log start offset retention before time and size based retention (apache#10216)
  KAFKA-12369; Implement `ListTransactions` API (apache#10206)
@dengziming dengziming deleted the minor-null-exception branch October 8, 2022 11:58
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