vmware-go-kcl-v2/clientlibrary
Tao Jiang 46fea317de Release shard lease after shutdown (#31)
* Release shard lease after shutdown

Currently, only local cached shard info has been removed when worker losts the
lease. The info inside checkpointer (dynamoDB) is not removed. This causes
lease has been hold until the lease expiration and it might take too long
for shard is ready for other worker to grab. This change release the lease
in checkpointer immediately.

The user need to ensure appropriate checkpointing before return from
Shutdown callback.

Test:
  updated unit test and integration test to ensure only the shard owner
has been wiped out and leave the checkpoint information intact.

Signed-off-by: Tao Jiang <taoj@vmware.com>

* Add code coverage reporting

Add code coverage reporting for unit test.

Signed-off-by: Tao Jiang <taoj@vmware.com>
2021-12-20 21:21:14 -06:00
..
checkpoint Release shard lease after shutdown (#31) 2021-12-20 21:21:14 -06:00
common KCL: Update copyright and permission 2021-12-20 21:16:27 -06:00
config Add credential configuration for resources (#14) 2021-12-20 21:21:14 -06:00
interfaces KCL: Update copyright and permission 2021-12-20 21:16:27 -06:00
metrics Add credential configuration for resources (#14) 2021-12-20 21:21:14 -06:00
partition Add support for providing custom checkpointer (#17) 2021-12-20 21:21:14 -06:00
utils KCL: Fix random number generator 2021-12-20 21:16:38 -06:00
worker Release shard lease after shutdown (#31) 2021-12-20 21:21:14 -06:00