Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[filer_sync] DATA RACE runFilerSynchronize #5194

Closed
kmlebedev opened this issue Jan 12, 2024 · 0 comments
Closed

[filer_sync] DATA RACE runFilerSynchronize #5194

kmlebedev opened this issue Jan 12, 2024 · 0 comments

Comments

@kmlebedev
Copy link
Contributor

Describe the bug

steps:

make 2mount
CGO_ENABLED=1 go build -race
./weed -v=4 filer.sync -a=127.0.0.1:8888 -b=127.0.0.1:7888 -a.debug -b.debug
==================
WARNING: DATA RACE
Read at 0x000107653f74 by goroutine 71:
  github.com/seaweedfs/seaweedfs/weed/command.runFilerSynchronize.func1()
      /Users/whitefox/GolandProjects/seaweedfs/weed/command/filer_sync.go:153 +0x274

Previous write at 0x000107653f74 by goroutine 72:
  github.com/seaweedfs/seaweedfs/weed/command.runFilerSynchronize.func2()
      /Users/whitefox/GolandProjects/seaweedfs/weed/command/filer_sync.go:191 +0x88

Goroutine 71 (running) created at:
  github.com/seaweedfs/seaweedfs/weed/command.runFilerSynchronize()
      /Users/whitefox/GolandProjects/seaweedfs/weed/command/filer_sync.go:144 +0x54c
  main.main()
      /Users/whitefox/GolandProjects/seaweedfs/weed/weed.go:80 +0x73c

Goroutine 72 (running) created at:
  github.com/seaweedfs/seaweedfs/weed/command.runFilerSynchronize()
      /Users/whitefox/GolandProjects/seaweedfs/weed/command/filer_sync.go:189 +0x6e4
  main.main()
      /Users/whitefox/GolandProjects/seaweedfs/weed/weed.go:80 +0x73c
==================

System Setup

master branch
kmlebedev added a commit to kmlebedev/seaweedfs that referenced this issue Jan 12, 2024
chrislusf pushed a commit that referenced this issue Jan 12, 2024
* fix: compose 2mount with sync

* fix: DATA RACE
#5194
#5195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant