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

Data race in memberlist.go #272

Open
lni opened this issue Aug 11, 2022 · 0 comments
Open

Data race in memberlist.go #272

lni opened this issue Aug 11, 2022 · 0 comments

Comments

@lni
Copy link

lni commented Aug 11, 2022

Got the following error when using memberlist.

WARNING: DATA RACE
Read at 0x00c037267b58 by goroutine 31139:
  github.com/hashicorp/memberlist.(*Memberlist).Leave()
      /Users/lni/src/matrixone/vendor/github.com/hashicorp/memberlist/memberlist.go:662 +0x22d
  github.com/lni/dragonboat/v4/internal/registry.(*gossipManager).Close()
      /Users/lni/src/matrixone/vendor/github.com/lni/dragonboat/v4/internal/registry/gossip.go:376 +0x8d
  github.com/lni/dragonboat/v4/internal/registry.(*GossipRegistry).Close()
      /Users/lni/src/matrixone/vendor/github.com/lni/dragonboat/v4/internal/registry/gossip.go:124 +0x45
  github.com/lni/dragonboat/v4.(*NodeHost).Close()
      /Users/lni/src/matrixone/vendor/github.com/lni/dragonboat/v4/nodehost.go:416 +0x5b2
  github.com/matrixorigin/matrixone/pkg/logservice.(*store).close()
      /Users/lni/src/matrixone/pkg/logservice/store.go:161 +0xb8
  github.com/matrixorigin/matrixone/pkg/logservice.(*Service).Close()
      /Users/lni/src/matrixone/pkg/logservice/service.go:147 +0x148
  github.com/matrixorigin/matrixone/pkg/logservice.TestGossipConvergeDelay.func1.1()
      /Users/lni/src/matrixone/pkg/logservice/service_test.go:627 +0x46

Previous write at 0x00c037267b58 by goroutine 5392:
  github.com/hashicorp/memberlist.(*Memberlist).refute()
      /Users/lni/src/matrixone/vendor/github.com/hashicorp/memberlist/state.go:900 +0xa4
  github.com/hashicorp/memberlist.(*Memberlist).suspectNode()
      /Users/lni/src/matrixone/vendor/github.com/hashicorp/memberlist/state.go:1172 +0x9a5
  github.com/hashicorp/memberlist.(*Memberlist).handleSuspect()
      /Users/lni/src/matrixone/vendor/github.com/hashicorp/memberlist/net.go:687 +0x206
  github.com/hashicorp/memberlist.(*Memberlist).packetHandler()
      /Users/lni/src/matrixone/vendor/github.com/hashicorp/memberlist/net.go:511 +0x1e4
  github.com/hashicorp/memberlist.newMemberlist.func5()
      /Users/lni/src/matrixone/vendor/github.com/hashicorp/memberlist/memberlist.go:229 +0x39
lni added a commit to lni/memberlist that referenced this issue Aug 11, 2022
volgariver6 pushed a commit to volgariver6/memberlist that referenced this issue Nov 1, 2022
volgariver6 pushed a commit to volgariver6/memberlist that referenced this issue Mar 21, 2023
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