chia7712 commented on code in PR #19879: URL: https://github.com/apache/kafka/pull/19879#discussion_r2122881124
########## 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: ummm - you want to have consistent exception - that is not required I think - `get(0)` is sufficient enough -- 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