engine: Fix data race in evacuation tests #1657

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/evac_test_race into master 2025-02-28 14:14:15 +00:00
==================
WARNING: DATA RACE
Write at 0x00c00062a070 by goroutine 481:
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine.TestEvacuateObjectsAsync()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine/evacuate_test.go:502 +0x1684
  testing.tRunner()
      /opt/hostedtoolcache/go/1.22.12/x64/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /opt/hostedtoolcache/go/1.22.12/x64/src/testing/testing.go:1742 +0x44
      
Previous write at 0x00c00062a070 by goroutine 510:
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine.TestEvacuateObjectsAsync.func3()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine/evacuate_test.go:478 +0x184
  golang.org/x/sync/errgroup.(*Group).Go.func1()
      /root/go/pkg/mod/golang.org/x/sync@v0.10.0/errgroup/errgroup.go:78 +0x91
``` ================== WARNING: DATA RACE Write at 0x00c00062a070 by goroutine 481: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine.TestEvacuateObjectsAsync() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine/evacuate_test.go:502 +0x1684 testing.tRunner() /opt/hostedtoolcache/go/1.22.12/x64/src/testing/testing.go:1689 +0x21e testing.(*T).Run.gowrap1() /opt/hostedtoolcache/go/1.22.12/x64/src/testing/testing.go:1742 +0x44 Previous write at 0x00c00062a070 by goroutine 510: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine.TestEvacuateObjectsAsync.func3() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/engine/evacuate_test.go:478 +0x184 golang.org/x/sync/errgroup.(*Group).Go.func1() /root/go/pkg/mod/golang.org/x/sync@v0.10.0/errgroup/errgroup.go:78 +0x91 ```
dstepanov-yadro added 1 commit 2025-02-28 11:53:00 +00:00
[#9999] engine: Fix data race in evacuation tests
All checks were successful
DCO action / DCO (pull_request) Successful in 43s
Vulncheck / Vulncheck (pull_request) Successful in 1m14s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m36s
Build / Build Components (pull_request) Successful in 1m30s
Tests and linters / Staticcheck (pull_request) Successful in 3m6s
Tests and linters / Run gofumpt (pull_request) Successful in 2m57s
Tests and linters / Tests with -race (pull_request) Successful in 3m13s
Tests and linters / Lint (pull_request) Successful in 3m20s
Tests and linters / Tests (pull_request) Successful in 3m3s
Tests and linters / gopls check (pull_request) Successful in 3m20s
ce169db9e1
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-02-28 11:53:01 +00:00
dstepanov-yadro force-pushed fix/evac_test_race from ce169db9e1 to f448babb99 2025-02-28 11:54:16 +00:00 Compare
fyrchik approved these changes 2025-02-28 13:05:36 +00:00
fyrchik merged commit 0991077cb3 into master 2025-02-28 14:14:15 +00:00
Sign in to join this conversation.
No reviewers
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#1657
No description provided.