I have a KCL (2.0/Java) deployed on FARGATE reading multiple shards. Unfortunately I experience two issues right now I hope somebody can help me with:
- FARGATE does not allow graceful shutdown of JVM.
- Since 1. the checkpoint value in the LeaseTable on DynamoDB is not updated. A new instanced of the KCL application will reprocess all events in the given shard.
Regarding 1, I already found out that there are some logging issues after SIGTERM
with FARGATE but since the shard checkpoints are not updated I assume there is general issue avoiding the shutdown routines to be run.
If, for 2, somebody know if there is a possibility to "manually" update, e..g every 5 min, the checkpoint value, that would at least reduce the number of repeatedly processed events.
GENERALIZATION: When does (except during shutdown) KCL update the lease table?
Thx, gapvision