gharris1727 commented on code in PR #16199: URL: https://github.com/apache/kafka/pull/16199#discussion_r1626526038
########## storage/src/test/java/org/apache/kafka/server/log/remote/storage/RemoteLogManagerConfigTest.java: ########## @@ -27,171 +25,72 @@ import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.DEFAULT_REMOTE_LOG_METADATA_MANAGER_CLASS_NAME; import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_LOG_METADATA_MANAGER_CLASS_NAME_PROP; +import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_LOG_METADATA_MANAGER_LISTENER_NAME_PROP; +import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP; +import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_STORAGE_MANAGER_CLASS_PATH_PROP; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotEquals; public class RemoteLogManagerConfigTest { - private static class TestConfig extends AbstractConfig { Review Comment: haha yeah this is exactly the strange things that happen when you expose a ConfigDef but don't subclass AbstractConfig. Thanks for fixing this! ########## core/src/main/java/kafka/log/remote/RemoteLogManager.java: ########## @@ -212,9 +213,9 @@ public RemoteLogManager(RemoteLogManagerConfig rlmConfig, rlmCopyQuotaManager = createRLMCopyQuotaManager(); rlmFetchQuotaManager = createRLMFetchQuotaManager(); - indexCache = new RemoteIndexCache(rlmConfig.remoteLogIndexFileCacheTotalSizeBytes(), remoteLogStorageManager, logDir); Review Comment: Part of the value of AbstractConfig subclasses is providing convenient and well-typed functions instead of requiring other classes to depend on the _PROP constants. ########## core/src/main/java/kafka/log/remote/RemoteLogManager.java: ########## @@ -125,6 +125,7 @@ import java.util.stream.Stream; import static org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManagerConfig.REMOTE_LOG_METADATA_COMMON_CLIENT_PREFIX; +import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.*; Review Comment: I think checkstyle hates star imports :) -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org