shard: Fix data race in metrics tests #637

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-test into master 2023-08-23 10:26:13 +00:00
Owner

Close #633.

Protect test metric store fields with a mutex. Probably, not every field
should be protected, but better safe than sorry.

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

Close #633. Protect test metric store fields with a mutex. Probably, not every field should be protected, but [better safe than sorry](https://www.youtube.com/watch?v=djV11Xbc914). Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added 1 commit 2023-08-23 07:45:06 +00:00
[#xx] shard: Fix data race in metrics tests
All checks were successful
DCO action / DCO (pull_request) Successful in 1m44s
Vulncheck / Vulncheck (pull_request) Successful in 2m54s
Build / Build Components (1.20) (pull_request) Successful in 3m35s
Tests and linters / Staticcheck (pull_request) Successful in 3m45s
Tests and linters / Tests (1.20) (pull_request) Successful in 5m18s
Tests and linters / Tests (1.21) (pull_request) Successful in 5m34s
Tests and linters / Tests with -race (pull_request) Successful in 6m0s
Build / Build Components (1.21) (pull_request) Successful in 12m50s
Tests and linters / Lint (pull_request) Successful in 14m13s
53340435b1
Protect test metric store fields with a mutex. Probably, not every field
should be protected, but better safe than sorry.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added a new dependency 2023-08-23 07:45:50 +00:00
fyrchik removed a dependency 2023-08-23 07:46:01 +00:00
fyrchik requested review from storage-core-committers 2023-08-23 07:46:11 +00:00
fyrchik requested review from storage-core-developers 2023-08-23 07:46:12 +00:00
acid-ant approved these changes 2023-08-23 07:52:42 +00:00
fyrchik merged commit 82cc453be9 into master 2023-08-23 10:26:13 +00:00
fyrchik deleted branch fix-test 2023-08-23 10:26:14 +00:00
fyrchik referenced this pull request from a commit 2023-08-25 10:10:30 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#637
No description provided.