chia7712 commented on code in PR #15582: URL: https://github.com/apache/kafka/pull/15582#discussion_r1536587476
########## metadata/src/test/java/org/apache/kafka/controller/QuorumControllerTest.java: ########## @@ -1540,15 +1540,14 @@ public void testActivationRecordsPartialBootstrap(boolean zkMigrationEnabled) { @Test public void testMigrationsEnabledForOldBootstrapMetadataVersion() throws Exception { try ( - LocalLogManagerTestEnv logEnv = new LocalLogManagerTestEnv.Builder(1).build() + LocalLogManagerTestEnv logEnv = new LocalLogManagerTestEnv.Builder(1).build(); ) { - QuorumControllerTestEnv.Builder controlEnvBuilder = new QuorumControllerTestEnv.Builder(logEnv). - setControllerBuilderInitializer(controllerBuilder -> { - controllerBuilder.setZkMigrationEnabled(true); - }). - setBootstrapMetadata(BootstrapMetadata.fromVersion(MetadataVersion.IBP_3_3_IV0, "test")); - - QuorumControllerTestEnv controlEnv = controlEnvBuilder.build(); + QuorumControllerTestEnv controlEnv = new QuorumControllerTestEnv.Builder(logEnv). Review Comment: Should we ensure `QuorumControllerTestEnv` is closed also? -- 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