Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

swarm/network/stream: file retrieval test race #1215

Closed
wants to merge 1 commit into from

Conversation

acud
Copy link
Member

@acud acud commented Feb 12, 2019

this PR addresses a possible race when shutting down the netstore while fetchers are still running.

the PR iterates over the fetchers and cancels them, then waits for the cancellation to propagate on netstore shutdown

fixes #1197

@acud acud self-assigned this Feb 12, 2019
@acud acud force-pushed the file-retrieval-race branch 2 times, most recently from 0b177cb to 14a4ff1 Compare February 12, 2019 15:05
@acud acud force-pushed the file-retrieval-race branch 2 times, most recently from 15630be to f5d73ae Compare February 12, 2019 15:43
swarm/network/stream: remove netstore internal wg
swarm/network/stream: run individual tests with t.Run
@acud acud force-pushed the file-retrieval-race branch from f5d73ae to 0187057 Compare February 13, 2019 06:12
@acud
Copy link
Member Author

acud commented Feb 13, 2019

submitted upstream ethereum/go-ethereum#19049

@acud acud closed this Feb 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data race in swarm/network/stream
1 participant