-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(k8s): add class providing key based locks and use it for K8S
The 'test_add_new_node_and_check_old_nodes_are_cleaned_up' K8S functional test has race condition where it may fail with the following error: Command: 'kubectl cp /tmp/tmpj8_823ao.yaml \ scylla/sct-cluster-dc-1-kind-0:/tmp/tmpj8_823ao.yaml -c scylla' Exit code: 2 Stderr: tar: tmpj8_823ao.yaml: Cannot open: File exists tar: Exiting with failure status due to previous errors command terminated with exit code 2 It is caused by the concurrent cqlsh cmd calls to the same Scylla pods. In this test there are about 7 concurrent such calls equal to the number of keyspaces in Scylla. So, fix it by using lock mechanism per each pod.
- Loading branch information
1 parent
730bd7a
commit 558925b
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters