Fixed producer cancelling before final task was finished
This commit is contained in:
parent
67ebab7c9f
commit
eb07782f4f
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ public class TestConsumer {
|
||||||
*/
|
*/
|
||||||
log.info("Cancelling producer and shutting down executor.");
|
log.info("Cancelling producer and shutting down executor.");
|
||||||
producerFuture.cancel(false);
|
producerFuture.cancel(false);
|
||||||
producerExecutor.shutdownNow();
|
producerExecutor.shutdown();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait a few seconds for the last few records to be processed
|
* Wait a few seconds for the last few records to be processed
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue