showuon commented on code in PR #14133:
URL: https://github.com/apache/kafka/pull/14133#discussion_r1279034999


##########
core/src/main/java/kafka/server/builders/ReplicaManagerBuilder.java:
##########
@@ -179,6 +179,7 @@ public ReplicaManager build() {
         if (metadataCache == null) throw new RuntimeException("You must set 
metadataCache");
         if (logDirFailureChannel == null) throw new RuntimeException("You must 
set logDirFailureChannel");
         if (alterPartitionManager == null) throw new RuntimeException("You 
must set alterIsrManager");
+        if (brokerTopicStats == null) brokerTopicStats = new 
BrokerTopicStats(config.remoteLogManagerConfig().enableRemoteStorageSystem());

Review Comment:
   Initializing brokerTopicStats if null, with the initialized config in L176 
above.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to