-
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
KAFKA-18431: Remove KafkaController #18573
Conversation
cbd68cc
to
2f155e9
Compare
assertNotEquals(broker1.hashCode, broker3.hashCode) | ||
assertNotEquals(broker1.hashCode, broker4.hashCode) | ||
|
||
assertEquals(Some(1), Map(broker1 -> 1).get(broker1)) |
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.
I guess this test is unrelated to the zk stuff, but not too useful if we convert BrookerEndPoint
to a record. I submitted #18577 for the latter.
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.
Nice clean-up! LGTM.
There were a few test failures, re-running the tests to see if these are flakes. If you get a chance, try to run the failures locally to see if they are related. |
Yes, they're related, I get error with following cases:
|
I will do some debug. Thanks for the review. |
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.
Updating review to indicate we need to fix the test failures.
I found root cause. I will push the comment again. Do we want to keep BrokerEndpointTest? If yes, I will remove zk related cases only. |
Signed-off-by: PoAn Yang <[email protected]>
2f155e9
to
fce8a5e
Compare
You can remove it. With the conversion to |
Btw, when you fix a PR, it's much easier for the reviewer, if you add additional commits versus rewriting the original commit (which has 7k lines of changes and some small new change somewhere in this case). In any case, can you describe what the fix was in this case? |
Sorry for that. I deleted code in Before (remove all following code):
After (only remove last argument):
|
|
@ijuma, Those cases can't be reproduced on my laptop. I merge trunk to trigger CI again. Thanks. |
Looks like the tests passed. |
Hi @ijuma, thanks for the review. Will you backport this to 4.0? I try to cherry-pick locally and there is no conflict. Thanks. |
Yes, I will. I do the backports in batches and update the JIRA once they're done. |
Remove KafkaController and related unused references: * ControllerChannelContext * ControllerChannelManager * ControllerEventManager * ControllerState * PartitionStateMachine * ReplicaStateMachine * TopicDeletionManager * ZkBrokerEpochManager Reviewers: Ismael Juma <[email protected]>
Remove KafkaController and related unused references: * ControllerChannelContext * ControllerChannelManager * ControllerEventManager * ControllerState * PartitionStateMachine * ReplicaStateMachine * TopicDeletionManager * ZkBrokerEpochManager Reviewers: Ismael Juma <[email protected]>
Tests for this class is being removed via #18573 - making it a record avoids the need for the tests being removed. Reviewers: Andrew Schofield <[email protected]>
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.
@FrankYang0529 I apologize for the delayed response. Could you please assist me in enhancing the content of zk2kraft.html
?
import scala.jdk.CollectionConverters._ | ||
|
||
object ControllerChannelManager { | ||
private val QueueSizeMetricName = "QueueSize" |
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.
Could you update zk2kraft.html
to say all metrics under kafka.controller:type=ControllerChannelManager
are removed?
eventQueueTimeTimeoutMs: Long = 300000) { | ||
import ControllerEventManager._ | ||
|
||
private val metricsGroup = new KafkaMetricsGroup(this.getClass) |
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.
ditto. all metrics under kafka.controller:type=ControllerEventManager
are removed
threadNamePrefix: Option[String] = None) | ||
extends ControllerEventProcessor with Logging { | ||
|
||
private val metricsGroup = new KafkaMetricsGroup(this.getClass) |
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.
ditto. all metrics under kafka.controller:type=KafkaController
are removed
} | ||
|
||
private[controller] class ControllerStats { | ||
private val metricsGroup = new KafkaMetricsGroup(this.getClass) |
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.
ditto. kafka.controller:type=ControllerStats
Remove KafkaController and related unused references:
Committer Checklist (excluded from commit message)