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(find): Refactor GapIndexer.findMissingTasksAndEpochs #778

Closed
wants to merge 2 commits into from

Conversation

placer14
Copy link
Contributor

@placer14 placer14 commented Nov 24, 2021

Does not change the behavior of the tests, only tightens the expectations to only the subjects being tested.

Refactor happens to fix #773 as well, so this test is included.

@placer14 placer14 requested a review from frrist November 24, 2021 13:14
@placer14 placer14 force-pushed the mg/chore/refactor-find-query branch from e8c8b89 to d66b221 Compare November 24, 2021 13:19
No change in behavior of Find, minor edits to tests to tighten
the expected for the test subject.
default:
}
gh := abi.ChainEpoch(gap)
tsgap, err := node.ChainGetTipSetByHeight(ctx, gh, types.EmptyTSK)
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be removed as doing so changes the behavior of the implementation. Gap find should probably continue to be aware of null rounds vs. gaps. A solution is outlined here: #767 (comment). I'd be fine with that landing as a part of this work, or as a follow-on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've run out of time to resolve this today. Will look for some spare time over my break to fix it or when I return.

Copy link
Member

Choose a reason for hiding this comment

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

As a part of this we should also label gaps resulting from undetected null rounds as NULLROUND-GAP or similar.

@placer14
Copy link
Contributor Author

placer14 commented Dec 2, 2021

This work will be re-applied along with the TBD plan for #767. Closing as it is no longer needed.

@placer14 placer14 closed this Dec 2, 2021
@placer14 placer14 deleted the mg/chore/refactor-find-query branch December 2, 2021 05:12
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.

Gaps reported for epochs,tasks which already have an OK
2 participants