-
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
Mocked sectorbuilder with 512Mib sector hangs on retrieval #3297
Comments
Follow-up: Good news and bad news. Good news for @jsign is if you change your data size in Bad news for all is the bug here is quite unfortunate. In retrieval deals, you have a payment interval, and a set increase to that inverval as payments are made. Normally since we deal with data in irregular block sizes and over all data size, we assume that the last payment will always be a "left over" -- i.e. something less than overall payment interval. However, if you happen to hit the exact boundary of a payment interval on the last block in your data, it appears we are failing. The reason the data size change fixes it is the default payment interval & payment interval increase for a retrieval provider, left unchanged is 1024x1024. (i.e. 1MB) So in this setup the payment intervals are: = payment at 10MB the total data size. Eek. Am working on more permaneant fix. |
So it's clear, the failure has nothing to do with the change in the sector builder size, only that the new data size you set happened to reveal a new bug. |
FYI: filecoin-project/go-fil-markets#388 -- actual fix incoming when it makes it through the chain |
Oh, I see. I tried with 15MiB and it failed as expected (considering your logic). With 14MiB or 16Mib works correctly. Thanks for taking a look, happy we caught this one. |
This was solved in v0.5.10. |
This is a continuation of this problem.
I setup again the test showing the problem on v0.5.3. Now the deal can be made, which is nice, but the retrieval hangs. Looking at the logs there's an error:
To reproduce:
go test ./node -run TestAPIDealFlow$/TestDealFlow -v
cc @arajasek @hannahhoward
The text was updated successfully, but these errors were encountered: