-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Limit maximum number of DAG links to traverse #7427
Limit maximum number of DAG links to traverse #7427
Conversation
@@ -182,7 +183,7 @@ func StorageClient(lc fx.Lifecycle, h host.Host, dataTransfer dtypes.ClientDataT | |||
marketsRetryParams := smnet.RetryParameters(time.Second, 5*time.Minute, 15, 5) | |||
net := smnet.NewFromLibp2pHost(h, marketsRetryParams) | |||
|
|||
c, err := storageimpl.NewClient(net, dataTransfer, discovery, deals, scn, accessor, storageimpl.DealPollingInterval(time.Second)) | |||
c, err := storageimpl.NewClient(net, dataTransfer, discovery, deals, scn, accessor, storageimpl.DealPollingInterval(time.Second), storageimpl.MaxTraversalLinks(config.MaxTraversalLinks)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the only place that graphsync is initiated? It's the only one I could find but do we have other avenues, like go-datatransfer? Otherwise we're relying on unbounded graphsync
#7428 was intended to be in here as well, there's a couple of |
Codecov Report
@@ Coverage Diff @@
## feat/update-graphsync-0.10.0 #7427 +/- ##
================================================================
+ Coverage 38.94% 39.50% +0.55%
================================================================
Files 616 616
Lines 65297 65319 +22
================================================================
+ Hits 25432 25806 +374
+ Misses 35462 35010 -452
- Partials 4403 4503 +100
Continue to review full report at Codecov.
|
b41a397
to
368d72e
Compare
8743cf4
to
9156c2f
Compare
Rebased onto current #7405 which has been rebased to master. |
Pulled in go-fil-markets@v1.13.0 which pulls in the newly tagged go-data-transfer@v1.11.0 which therefore incorporates #7441 into this branch. |
So, the easiest test of this I think is to start the daemon with Importing a file of decent size (in this case just the built
There are some other places that are a bit more difficult to run manual tests on without an operating storage network. |
Impacts CommP and graphsync transfers
6d29552
to
97c2cdb
Compare
Version Compatibility TestingOld: lotus v1.11.3
|
Goals
Set reasonable limits on number of links traversed while calculating commP & doing go-graphsync transfers
Blockers:
Implementation