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

Improve sector upload estimate tracking #1193

Merged
merged 10 commits into from
May 3, 2024

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Apr 23, 2024

It turns out that Chris 's hunch was right and that we are not tracking sector upload estimates at times we should be, even worse we currently don't track anything at times we should be penalising the host for being slow. I added explicit logging for when we penalise a host for being (super) slow, so going to follow this up on my node to be sure.

Overall I thought it was a little tricky to come up with a good way to fix it and to write a solid unit and/or integration test for it. If we really want to check the exact errors we would need an integration test but that would involve a level of orchestration we are currently not capable of doing from an integration test. The unit test I came up with is not exactly what I was hoping for but it does cover all branches.

Closes #1167

@peterjan peterjan force-pushed the pj/test-track-sector-upload branch from 7f4a075 to f2c598b Compare April 23, 2024 14:12
@peterjan peterjan self-assigned this Apr 23, 2024
@peterjan peterjan marked this pull request as ready for review April 24, 2024 10:16
worker/uploader.go Outdated Show resolved Hide resolved
@peterjan peterjan changed the title Add unit test to verify we correctly track/skip sector upload estimates Improve sector upload estimate tracking Apr 26, 2024
@peterjan peterjan force-pushed the pj/test-track-sector-upload branch from 2d35b09 to b2b978e Compare April 26, 2024 14:40
@peterjan peterjan force-pushed the pj/test-track-sector-upload branch from d5a2db3 to 1a39a4e Compare May 2, 2024 10:05
worker/rhpv2.go Show resolved Hide resolved
worker/uploader.go Outdated Show resolved Hide resolved
worker/uploader.go Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit 8aadd52 into dev May 3, 2024
7 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/test-track-sector-upload branch May 3, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Investigate trackSectorUpload calls
2 participants