vmware-go-kcl-v2/clientlibrary
Aurélien Rainone f1935bc0ff Fix potentially delayed shutdown on shard sync (#64)
ull-request #62 wrongly introduced an increased delay on
shutdown.

Before #62 the `stop` channel could be triggered while waiting for
`syncShard` milliseconds, so the function could return as soon as
`stop` was received.

However #62 changed this behavior by sleeping in the default case:
`stop` couldn't be handled right away anymore. Instead it was
handled after a whole new loop, potentially delaying shutdown by
minutes. (up to synchard * 1.5 ms).

This commit fixes that.

Signed-off-by: Aurélien Rainone <aurelien.rainone@gmail.com>
2021-12-20 21:21:15 -06:00
..
checkpoint Make the lease refresh period configurable (#56) 2021-12-20 21:21:15 -06:00
common Expose monitoring service (#49) 2021-12-20 21:21:15 -06:00
config Make the lease refresh period configurable (#56) 2021-12-20 21:21:15 -06:00
interfaces KCL: Update copyright and permission 2021-12-20 21:16:27 -06:00
metrics Fix error in puslishing cloud watch metrics (#55) 2021-12-20 21:21:15 -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 Fix potentially delayed shutdown on shard sync (#64) 2021-12-20 21:21:15 -06:00