brandboat commented on code in PR #19879:
URL: https://github.com/apache/kafka/pull/19879#discussion_r2122883306


##########
core/src/test/scala/integration/kafka/server/QuorumTestHarness.scala:
##########
@@ -275,7 +275,7 @@ abstract class QuorumTestHarness extends Logging {
     formatter.addDirectory(metadataDir.getAbsolutePath)
     formatter.setReleaseVersion(metadataVersion)
     formatter.setUnstableFeatureVersionsEnabled(true)
-    formatter.setControllerListenerName(config.controllerListenerNames.head)
+    
formatter.setControllerListenerName(config.controllerListenerNames.stream.findFirst.orElseThrow)

Review Comment:
   Thanks for the comment! I've applied the `get(0)` approach in this PR.



-- 
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

Reply via email to