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

chore: Cleanup invariant errors related to v13 migration #287

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

rjan90
Copy link
Contributor

@rjan90 rjan90 commented Jul 5, 2024

I encountered both these errors when running the invariant-check on mainnet. Deleting these two invariants given that they existed only to test the v13 migration as per the TODO in code comments.

  • "MIGRATION-ONLY: un-slashed deal %d not referenced in active sectors of miner %v", dealID, deal.Provider"
  • "MIGRATION-ONLY: deal %d not found in miner %v for sector %v", dealID, maddr, sectorID)"

@rjan90 rjan90 requested review from rvagg and aarshkshah1992 July 5, 2024 11:54
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

I had to go remind myself why this was OK to skip now. As per 0076:

The per-sector DealIDs field is deprecated and to be ignored.
The miner actor will not write new deals to it.

Which is why we're accumulating them now.

But also, I think this is going to be irrelevant after nv23 because we won't be executign this code path once v14/check.go takes over. I guess this will take effect once we ship 1.28.0 for the short period before nv23?

Cleanup nv22 MIGRATION-ONLY errors
@rjan90 rjan90 force-pushed the phi/cleanup-v13-migration-invariant-check branch from f17e91d to b614040 Compare July 10, 2024 05:49
@rjan90 rjan90 merged commit 533224b into master Jul 10, 2024
5 checks passed
@rjan90 rjan90 deleted the phi/cleanup-v13-migration-invariant-check branch July 10, 2024 05:53
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