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.
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 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. |
|
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 <payang@apache.org>
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 <ismael@juma.me.uk>
Remove KafkaController and related unused references: * ControllerChannelContext * ControllerChannelManager * ControllerEventManager * ControllerState * PartitionStateMachine * ReplicaStateMachine * TopicDeletionManager * ZkBrokerEpochManager Reviewers: Ismael Juma <ismael@juma.me.uk>
Tests for this class is being removed via #18573 - making it a record avoids the need for the tests being removed. Reviewers: Andrew Schofield <aschofield@confluent.io>
chia7712
left a comment
There was a problem hiding this comment.
@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.
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.
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.
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.
ditto. kafka.controller:type=ControllerStats
Remove KafkaController and related unused references: * ControllerChannelContext * ControllerChannelManager * ControllerEventManager * ControllerState * PartitionStateMachine * ReplicaStateMachine * TopicDeletionManager * ZkBrokerEpochManager Reviewers: Ismael Juma <ismael@juma.me.uk>
Tests for this class is being removed via apache#18573 - making it a record avoids the need for the tests being removed. Reviewers: Andrew Schofield <aschofield@confluent.io>
Remove KafkaController and related unused references: * ControllerChannelContext * ControllerChannelManager * ControllerEventManager * ControllerState * PartitionStateMachine * ReplicaStateMachine * TopicDeletionManager * ZkBrokerEpochManager Reviewers: Ismael Juma <ismael@juma.me.uk>
Tests for this class is being removed via apache#18573 - making it a record avoids the need for the tests being removed. Reviewers: Andrew Schofield <aschofield@confluent.io>
Remove KafkaController and related unused references: * ControllerChannelContext * ControllerChannelManager * ControllerEventManager * ControllerState * PartitionStateMachine * ReplicaStateMachine * TopicDeletionManager * ZkBrokerEpochManager Reviewers: Ismael Juma <ismael@juma.me.uk>
Tests for this class is being removed via apache#18573 - making it a record avoids the need for the tests being removed. Reviewers: Andrew Schofield <aschofield@confluent.io>
Remove KafkaController and related unused references:
Committer Checklist (excluded from commit message)