divijvaidya commented on code in PR #13096:
URL: https://github.com/apache/kafka/pull/13096#discussion_r1067063294
##########
core/src/main/scala/kafka/server/KafkaServer.scala:
##########
@@ -575,7 +575,7 @@ class KafkaServer(
protected def createRemoteLogManager(config: KafkaConfig):
Option[RemoteLogManager] = {
val remoteLogManagerConfig = new RemoteLogManagerConfig(config)
if (remoteLogManagerConfig.enableRemoteStorageSystem()) {
- if(config.logDirs.size > 1) {
+ if(config.logDirs.lengthCompare(1) > 0) {
Review Comment:
FYI reviewers -
config.logDirs is a scala Seq, hence, lengthCompare() is beneficial.
--
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]