-
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-18446:Remove MetadataCacheControllerNodeProvider #18437
base: trunk
Are you sure you want to change the base?
Conversation
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.
LGTM. Thanks.
@gongxuanzhang please fix the conflicts |
b46989c
to
d1b1d9d
Compare
…etadata # Conflicts: # core/src/main/scala/kafka/server/NodeToControllerChannelManager.scala
@chia7712 PTAL |
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.
@gongxuanzhang thanks for this patch!
zkControllerListenerName, | ||
zkControllerSecurityProtocol, | ||
zkControllerSaslMechanism, | ||
isZkController = true) |
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 please remove isZkController
and isNetworkClientForZkController
from this class file?
@chia7712 PTAL |
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.
@gongxuanzhang thanks for this patch. two minor comments are left
@@ -244,7 +210,6 @@ case class NodeToControllerQueueItem( | |||
|
|||
class NodeToControllerRequestThread( | |||
initialNetworkClient: KafkaClient, | |||
var isNetworkClientForZkController: Boolean, | |||
networkClientFactory: ControllerInformation => KafkaClient, |
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.
networkClientFactory
can be removed now
isNetworkClientForZkController = controllerInformation.isZkController | ||
updateControllerAddress(controllerInformation.node.orNull) | ||
controllerInformation.node.foreach(n => metadataUpdater.setNodes(Seq(n).asJava)) | ||
networkClient = networkClientFactory(controllerInformation) |
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.
we don't change networkClient
anymore, so networkClient
can be declared as final variable.
Fix Issue
format import by spotless