mirror of https://github.com/apache/druid.git
TestKafkaExtractionCluster: Shut down Kafka, ZK in @After. (#11963)
This commit is contained in:
parent
2e3767bef0
commit
cb0a2af644
|
@ -91,6 +91,9 @@ public class TestKafkaExtractionCluster
|
|||
{
|
||||
zkServer = new TestingCluster(1);
|
||||
zkServer.start();
|
||||
closer.register(() -> {
|
||||
zkServer.stop();
|
||||
});
|
||||
|
||||
kafkaServer = new KafkaServer(
|
||||
getBrokerProperties(),
|
||||
|
@ -99,6 +102,10 @@ public class TestKafkaExtractionCluster
|
|||
false);
|
||||
|
||||
kafkaServer.startup();
|
||||
closer.register(() -> {
|
||||
kafkaServer.shutdown();
|
||||
kafkaServer.awaitShutdown();
|
||||
});
|
||||
log.info("---------------------------Started Kafka Broker ---------------------------");
|
||||
|
||||
log.info("---------------------------Publish Messages to topic-----------------------");
|
||||
|
|
Loading…
Reference in New Issue