* 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>
5 lines
134 B
Bash
Executable file
5 lines
134 B
Bash
Executable file
#!/bin/bash
|
|
. support/scripts/functions.sh
|
|
|
|
# Run only the unit tests and not integration tests
|
|
go test -cover -race $(local_go_pkgs)
|