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

Random test failure in bitswap #4108

Open
Stebalien opened this issue Jul 31, 2017 · 4 comments · Fixed by #4109
Open

Random test failure in bitswap #4108

Stebalien opened this issue Jul 31, 2017 · 4 comments · Fixed by #4109
Labels
topic/bitswap Topic bitswap topic/test failure Topic test failure

Comments

@Stebalien
Copy link
Member

Version information:

go-ipfs version: 0.4.11-dev-06c567d17
Repo version: 5
System version: amd64/linux
Golang version: go1.8.3

Type:

Bug

Severity:

Medium

Description:

ERROR   bitswap: nil cid in GetBlock get.go:18

--- FAIL: TestBasicBitswap (0.03s)

	bitswap_test.go:319: Test a one node trying to get one block from another

	bitswap_test.go:338: should have no items in other peers wantlist

FAIL

FAIL	github.com/ipfs/go-ipfs/exchange/bitswap	10.387s
@Stebalien Stebalien added topic/bitswap Topic bitswap kind/bug A bug in existing code (including security flaws) topic/test failure Topic test failure and removed kind/bug A bug in existing code (including security flaws) labels Jul 31, 2017
@Stebalien
Copy link
Member Author

I believe this is simply a race in the tests. Fix incoming.

Stebalien added a commit that referenced this issue Jul 31, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Jul 31, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Jul 31, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Aug 1, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Aug 16, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Aug 17, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Aug 17, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Aug 17, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Stebalien added a commit that referenced this issue Aug 17, 2017
fixes #4108

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@Stebalien
Copy link
Member Author

#4411 😭

@Stebalien
Copy link
Member Author

Stebalien commented Dec 15, 2017

Race races are racy. Use locks.

@Stebalien
Copy link
Member Author

Nope. There were races, but this bug isn't related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/bitswap Topic bitswap topic/test failure Topic test failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant