Data race in writecache tests #599

Closed
opened 2023-08-11 07:03:47 +00:00 by fyrchik · 1 comment
Owner

https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/789/jobs/3

==================
WARNING: DATA RACE
Write at 0x00c0004262f8 by goroutine 82:
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).setMode()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/mode.go:59 +0x2f7
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).SetMode()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/mode.go:25 +0x35b
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachetest.TestFlush[go.shape.func(*git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.options)].func2()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachetest/flush.go:74 +0x199
  testing.tRunner()
      /opt/hostedtoolcache/go/1.21.0/x64/src/testing/testing.go:1595 +0x238
  testing.(*T).Run.func1()
      /opt/hostedtoolcache/go/1.21.0/x64/src/testing/testing.go:1648 +0x44
Previous read at 0x00c0004262f8 by goroutine 105:
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).readOnly()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/mode.go:74 +0xdc
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).flushSmallObjects()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/flush.go:93 +0xef
  git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).runFlushLoop.func3()
      /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/flush.go:71 +0x10d
https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/789/jobs/3 ``` ================== WARNING: DATA RACE Write at 0x00c0004262f8 by goroutine 82: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).setMode() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/mode.go:59 +0x2f7 git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).SetMode() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/mode.go:25 +0x35b git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachetest.TestFlush[go.shape.func(*git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.options)].func2() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachetest/flush.go:74 +0x199 testing.tRunner() /opt/hostedtoolcache/go/1.21.0/x64/src/testing/testing.go:1595 +0x238 testing.(*T).Run.func1() /opt/hostedtoolcache/go/1.21.0/x64/src/testing/testing.go:1648 +0x44 Previous read at 0x00c0004262f8 by goroutine 105: git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).readOnly() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/mode.go:74 +0xdc git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).flushSmallObjects() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/flush.go:93 +0xef git.frostfs.info/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt.(*cache).runFlushLoop.func3() /workspace/TrueCloudLab/frostfs-node/pkg/local_object_storage/writecache/writecachebbolt/flush.go:71 +0x10d ```
fyrchik added the
bug
frostfs-node
triage
labels 2023-08-11 07:03:47 +00:00
fyrchik added this to the v0.37.0 milestone 2023-08-14 07:12:37 +00:00
Author
Owner

Closed via #603

Closed via #603
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#599
No description provided.