Fixed producer cancelling before final task was finished

This commit is contained in:
Meher Mankikar 2023-06-15 08:27:35 -07:00
parent 67ebab7c9f
commit eb07782f4f

View file

@ -125,7 +125,7 @@ public class TestConsumer {
*/
log.info("Cancelling producer and shutting down executor.");
producerFuture.cancel(false);
producerExecutor.shutdownNow();
producerExecutor.shutdown();
/**
* Wait a few seconds for the last few records to be processed