-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
improve log description of QuorumController #15926
Conversation
Hey, @mumrah ! When you have free time, could you take a look? 🙇♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up @chickenchickenlove 👍
Left a suggestion for the log message
@@ -165,6 +165,8 @@ static ControllerResult<Void> recordsForNonEmptyLog( | |||
throw new RuntimeException("Should not have ZK migrations enabled on a cluster that was " + | |||
"created in KRaft mode."); | |||
} | |||
logMessageBuilder | |||
.append("since this is a de-novo KRaft cluster."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about "This is expected because this is a de-novo KRaft cluster." ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better 👍
I make a new commit to apply your comments.
Please take another look, when you have free time 🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mumrah gently ping.
When you have free time, please take another look?
Thanks in advance! 🙇♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one small style nit. Otherwise, LGTM
@@ -165,6 +165,8 @@ static ControllerResult<Void> recordsForNonEmptyLog( | |||
throw new RuntimeException("Should not have ZK migrations enabled on a cluster that was " + | |||
"created in KRaft mode."); | |||
} | |||
logMessageBuilder | |||
.append("This is expected because this is a de-novo KRaft cluster."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: remove the unnecessary line break here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mumrah , i make new commit to apply your comments.
However, the CI
still is failed.
The changes which i made seems not to be related with failure of CI.
Am i wrong?
I started a new build here https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-15926/6/ |
Thanks for your comments. |
Test failures look unrelated. Merging |
Hey, mumrah. |
Motivation
QuorumController
warn with "Performing controller activation. Loaded ZK migration state of NONE" even if it'sde-novo
KRaft cluster. That message makes operator confused, and operator might waste time investigating that log. If we add some description to log, operator will be more convenient.Modification
de-novo KRaft
cluster whenzookeeper.metadata.migration.enable=false
and the broker version supportsKRaft
.Result