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

Miner SimultaneousTransfers config #6612

Merged
merged 2 commits into from
Jun 28, 2021
Merged

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Jun 28, 2021

No description provided.

Copy link
Member

@raulk raulk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an integration test with the new testkit?

@dirkmc -- have we already merged the "queued" status? That's something that the integration test could look out for.

@raulk
Copy link
Member

raulk commented Jun 28, 2021

Suggestion: capture all transfer start/stop events (by subscribing to markets events), set a limit of –say– 2 simultaneous transfers, perform 100 concurrent transfers, and then go over the events to ensure that only 2 transfers were ever active at a time.

@magik6k magik6k force-pushed the feat/miner-par-transfers-cfg branch from 69e4545 to e9dd3e8 Compare June 28, 2021 16:18
}()

dh.RunConcurrentDeals(kit.RunConcurrentDealsOpts{
N: 1, // TODO: set to 20 after https://github.com/ipfs/go-graphsync/issues/175 is fixed
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this set to 10, when the test would not hang because of this issue, the assert below would fail if the config wasn't set, and it does pass when it's set

@magik6k magik6k enabled auto-merge June 28, 2021 16:42
@magik6k magik6k disabled auto-merge June 28, 2021 18:08
@magik6k magik6k merged commit 49a709a into master Jun 28, 2021
@magik6k magik6k deleted the feat/miner-par-transfers-cfg branch June 28, 2021 18:08
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

Successfully merging this pull request may close these issues.

4 participants