Closed aelaa closed 4 years ago
Graceful shutdowns attempts allowing the running record processors to finish the work they are doing. If the consumers are particularly long running you may need to force the shutdown non-gracefully.
This message is saying that there were 2 consumers running, and 2 that are still running. The shutdown did not complete. You can either try calling the graceful shutdown again and await the consumers to finish their work, or you can more forcibly shutdown the worker.
Per our docs:
https://docs.aws.amazon.com/streams/latest/dev/kinesis-record-processor-implementation-app-java.html
If the shutdown reason is TERMINATE, the record processor should finish processing
any data records, and then call the checkpoint method on this interface.
If you continue to experience problems with shutting down a KCL worker, you can open an AWS Support case in the AWS Console to provide more information around configuration, use case, and the code you are using and we can try our best to help troubleshoot the problems you are seeing.
Tried to run on both my application and sample from this repo. Every time I'm trying to stop the application, I see next message:
I suppose application's stopping properly, but KCL still waits for something. Is it OK?