I have a application , two shards and two instances of consumer app (KCL).
On the start , the first instance get both shards and starting processing data, after a few moments later the second app is starting and takes second shard, in first instance is invoked method to losing shard (separate thread). Log below:
[LeaseRenewer-0004] c.a.s.k.leases.impl.LeaseRenewer - Worker 7d2f89c1-fbb1-4480-9488-XXXXXXXXXX lost lease with key shardId-0000000000XX
My question, how to delay losing shard and finish gracefully processing data.
I have a application , two shards and two instances of consumer app (KCL).
On the start , the first instance get both shards and starting processing data, after a few moments later the second app is starting and takes second shard, in first instance is invoked method to losing shard (separate thread). Log below:
[LeaseRenewer-0004] c.a.s.k.leases.impl.LeaseRenewer - Worker 7d2f89c1-fbb1-4480-9488-XXXXXXXXXX lost lease with key shardId-0000000000XX
My question, how to delay losing shard and finish gracefully processing data.