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

Flaky test - TestQueryCommitsBranchables_SyncsAcrossPeerConnection #3259

Open
fredcarle opened this issue Nov 19, 2024 · 0 comments
Open

Flaky test - TestQueryCommitsBranchables_SyncsAcrossPeerConnection #3259

fredcarle opened this issue Nov 19, 2024 · 0 comments
Milestone

Comments

@fredcarle
Copy link
Collaborator

WARNING: DATA RACE
Read at 0x00c0000e10a0 by goroutine 15737:
  github.com/sourcenetwork/go-libp2p-pubsub-rpc.(*Topic).listen()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/rpc.go:333 +0x1d8
  github.com/sourcenetwork/go-libp2p-pubsub-rpc.newTopic.gowrap3()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/rpc.go:162 +0x33

Previous write at 0x00c0000e10a0 by goroutine 14334:
  github.com/sourcenetwork/go-libp2p-pubsub-rpc.NewTopic()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/rpc.go:122 +0x427
  github.com/sourcenetwork/defradb/net.(*server).addPubSubTopic()
      /home/runner/work/defradb/defradb/net/server.go:201 +0x7a5
  github.com/sourcenetwork/defradb/net.(*server).publishLog()
      /home/runner/work/defradb/defradb/net/server.go:293 +0x29a
  github.com/sourcenetwork/defradb/net.(*Peer).handleLog()
      /home/runner/work/defradb/defradb/net/peer.go:284 +0x52d
  github.com/sourcenetwork/defradb/net.(*Peer).handleMessageLoop()
      /home/runner/work/defradb/defradb/net/peer.go:239 +0x3c4
  github.com/sourcenetwork/defradb/net.NewPeer.gowrap1()
      /home/runner/work/defradb/defradb/net/peer.go:144 +0x33

Goroutine 15737 (running) created at:
  github.com/sourcenetwork/go-libp2p-pubsub-rpc.newTopic()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/rpc.go:162 +0x624
  github.com/sourcenetwork/go-libp2p-pubsub-rpc.NewTopic()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/rpc.go:116 +0x1c4
  github.com/sourcenetwork/defradb/net.(*server).addPubSubTopic()
      /home/runner/work/defradb/defradb/net/server.go:201 +0x7a5
  github.com/sourcenetwork/defradb/net.(*server).publishLog()
      /home/runner/work/defradb/defradb/net/server.go:293 +0x29a
  github.com/sourcenetwork/defradb/net.(*Peer).handleLog()
      /home/runner/work/defradb/defradb/net/peer.go:284 +0x52d
  github.com/sourcenetwork/defradb/net.(*Peer).handleMessageLoop()
      /home/runner/work/defradb/defradb/net/peer.go:239 +0x3c4
  github.com/sourcenetwork/defradb/net.NewPeer.gowrap1()
      /home/runner/work/defradb/defradb/net/peer.go:144 +0x33

Goroutine 14334 (running) created at:
  github.com/sourcenetwork/defradb/net.NewPeer()
      /home/runner/work/defradb/defradb/net/peer.go:144 +0x16f3
  github.com/sourcenetwork/defradb/node.(*Node).Start()
      /home/runner/work/defradb/defradb/node/node.go:157 +0x4f4
  github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:465 +0x4f8
  github.com/syndtr/goleveldb/leveldb.(*DB).checkAndCleanFiles()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_util.go:52 +0x28e
  github.com/syndtr/goleveldb/leveldb.openDB()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:137 +0x884
  github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:465 +0x4f8
  fmt.Fscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
  fmt.Sscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
  github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:651 +0x91
  github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:465 +0x4f8
  fmt.Fscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
  fmt.Sscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x264
  github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:665 +0x18e
  fmt.(*ss).doScanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:1230 +0x435
  fmt.Fscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
  fmt.Sscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
  github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:651 +0x91
  github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:465 +0x4f8
  fmt.Fscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
  fmt.Sscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
  github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:651 +0x91
  github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:465 +0x4f8
  github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournal()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:492 +0xa6
  github.com/syndtr/goleveldb/leveldb.openDB()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:132 +0x86d
  github.com/syndtr/goleveldb/leveldb.Open()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:205 +0x37c
  fmt.Fscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:143 +0xdc
  fmt.Sscanf()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/fmt/scan.go:114 +0x184
  github.com/syndtr/goleveldb/leveldb/storage.fsParseName()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:651 +0x91
  github.com/syndtr/goleveldb/leveldb/storage.(*fileStorage).List()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/storage/file_storage.go:465 +0x4f8
  github.com/syndtr/goleveldb/leveldb.(*session).recover.func1()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/session.go:134 +0xbd
  runtime.deferreturn()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:602 +0x5d
  github.com/syndtr/goleveldb/leveldb.Open()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:191 +0x11b
  github.com/syndtr/goleveldb/leveldb.OpenFile()
      /home/runner/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:227 +0x7d
  github.com/cosmos/cosmos-db.NewGoLevelDBWithOpts()
      /home/runner/go/pkg/mod/github.com/cosmos/[email protected]/goleveldb.go:44 +0xe4
  github.com/cosmos/cosmos-db.NewGoLevelDB()
      /home/runner/go/pkg/mod/github.com/cosmos/[email protected]/goleveldb.go:39 +0x17b
  github.com/sourcenetwork/raccoondb.NewPersistentKV()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/kv_stores_general.go:10 +0x53
  github.com/sourcenetwork/defradb/acp.(*ACPLocal).Start.WithPersistentKV.func2()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/pkg/runtime/types.go:31 +0x64
  github.com/sourcenetwork/acp_core/pkg/runtime.NewRuntimeManager()
      /home/runner/go/pkg/mod/github.com/sourcenetwork/[email protected]/pkg/runtime/types.go:83 +0x48d
  github.com/sourcenetwork/defradb/acp.(*ACPLocal).Start()
      /home/runner/work/defradb/defradb/acp/acp_local.go:94 +0x2bb
  github.com/sourcenetwork/defradb/acp.(*sourceHubBridge).Start()
      /home/runner/work/defradb/defradb/acp/source_hub_client.go:170 +0xa6
  github.com/sourcenetwork/defradb/internal/db.(*db).initialize()
      /home/runner/work/defradb/defradb/internal/db/db.go:364 +0x2ae
  github.com/sourcenetwork/defradb/internal/db.newDB()
      /home/runner/work/defradb/defradb/internal/db/db.go:154 +0x988
  github.com/sourcenetwork/defradb/internal/db.NewDB()
      /home/runner/work/defradb/defradb/internal/db/db.go:108 +0x2fe
  github.com/sourcenetwork/defradb/node.(*Node).Start()
      /home/runner/work/defradb/defradb/node/node.go:150 +0x1ea
  github.com/sourcenetwork/defradb/tests/integration.setupNode()
      /home/runner/work/defradb/defradb/tests/integration/db.go:216 +0x1652
  github.com/sourcenetwork/defradb/tests/integration.configureNode()
      /home/runner/work/defradb/defradb/tests/integration/utils.go:831 +0x9a4
  github.com/sourcenetwork/defradb/tests/integration.performAction()
      /home/runner/work/defradb/defradb/tests/integration/utils.go:291 +0x1cce
  github.com/sourcenetwork/defradb/tests/integration.executeTestCase()
      /home/runner/work/defradb/defradb/tests/integration/utils.go:265 +0x149c
  github.com/sourcenetwork/defradb/tests/integration.ExecuteTestCase()
      /home/runner/work/defradb/defradb/tests/integration/utils.go:213 +0xf04
  github.com/sourcenetwork/defradb/tests/integration/query/commits/branchables.TestQueryCommitsBranchables_SyncsAcrossPeerConnection()
      /home/runner/work/defradb/defradb/tests/integration/query/commits/branchables/peer_test.go:94 +0x1346
  testing.tRunner()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1689 +0x21e
  testing.(*T).Run.gowrap1()
      /home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1742 +0x44
@fredcarle fredcarle added this to the DefraDB v0.15 milestone Nov 19, 2024
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