TaiJuWu commented on code in PR #19286: URL: https://github.com/apache/kafka/pull/19286#discussion_r2027851831
########## core/src/test/java/kafka/log/remote/RemoteLogManagerTest.java: ########## @@ -413,24 +418,19 @@ void testRemoteLogMetadataManagerWithEndpointConfigOverridden() throws IOExcepti tp -> Optional.of(mockLog), (topicPartition, offset) -> { }, brokerTopicStats, - metrics) { + metrics, + endPoint) { + @Override public RemoteStorageManager createRemoteStorageManager() { return remoteStorageManager; } + @Override public RemoteLogMetadataManager createRemoteLogMetadataManager() { return remoteLogMetadataManager; } }) { - - String host = "localhost"; - int port = 1234; - String securityProtocol = "PLAINTEXT"; - Endpoint endpoint = new Endpoint(securityProtocol, SecurityProtocol.PLAINTEXT, host, port); - remoteLogManager.onEndPointCreated(endpoint); - remoteLogManager.startup(); - ArgumentCaptor<Map<String, Object>> capture = ArgumentCaptor.forClass(Map.class); - verify(remoteLogMetadataManager, times(1)).configure(capture.capture()); + verify(remoteLogMetadataManager, times(2)).configure(capture.capture()); Review Comment: Done. -- 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