ijuma commented on code in PR #19579:
URL: https://github.com/apache/kafka/pull/19579#discussion_r2062700142
##########
clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/admin/ListOffsetsIntegrationTest.java:
##########
@@ -243,8 +241,7 @@ private void verifyListOffsets(String topic, int
expectedMaxTimestampOffset) thr
// case 2: test the offsets from recovery path.
// server will rebuild offset index according to log files if the
index files are nonexistent
Set<String> indexFiles =
clusterInstance.brokers().values().stream().flatMap(broker ->
- CollectionConverters.asJava(broker.config().logDirs()).stream()
- ).collect(Collectors.toUnmodifiableSet());
+
broker.config().logDirs().stream()).collect(Collectors.toUnmodifiableSet());
Review Comment:
You can simply use `toList`.
--
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]