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

Only log lost sectors if sector was part of an active contract #996

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

ChrisSchinnerl
Copy link
Member

Right now we print a lot of "successfully marked sector as lost" regardless of whether the host was actually supposed to have that sector or not. e.g. a contract with a host might have expired and the host doesn't need to have a sector but we still log this message, confusing the operator of the node.

This PR moves the log line to the bus to make sure we only print it when there was actually an associated contract in the db for a given contract.

@ChrisSchinnerl ChrisSchinnerl self-assigned this Feb 23, 2024
stores/metadata_test.go Outdated Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit fc72fa9 into dev Feb 27, 2024
8 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/mark-sector-lost-logging branch February 27, 2024 10:21
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.

2 participants