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

feat: Enable Block Streams Start from V1 Interruption #517

Merged
merged 7 commits into from
Jan 25, 2024

Conversation

darunrs
Copy link
Collaborator

@darunrs darunrs commented Jan 19, 2024

Coordinator V2 currently defaults to starting block streams with the start_block_height value populated in the registry. In order for a smooth migration from V1 to V2, we instead want Coordinator V2 to create block streams starting where the current indexers left off.

Coordinator V1 now writes a last_published_block value for all indexers it manages on each matching block.

Coordinator V2's start_block_height setting workflow needs refactoring. This is due to the fact that the exisitng flow defauls to using start_block_height as its present in the registry even after we begin processing a stream from that block height. We need to refactor the flow to ensure we use the start block height once, and otherwise use redis last published block height, or fallback if not present.

New flow to handle edge cases will be tracked by #521.

@darunrs darunrs force-pushed the coordinatorInterruption branch from ae414b5 to 0c1b189 Compare January 19, 2024 20:51
@darunrs darunrs marked this pull request as ready for review January 22, 2024 19:09
@darunrs darunrs requested a review from a team as a code owner January 22, 2024 19:09
@darunrs darunrs linked an issue Jan 22, 2024 that may be closed by this pull request
@darunrs darunrs force-pushed the coordinatorInterruption branch from d447c48 to 4377ea4 Compare January 23, 2024 19:28
@darunrs darunrs requested a review from morgsmccauley January 23, 2024 19:32
@darunrs darunrs force-pushed the blockStreamerDeployment branch from 854dcae to 2ac0a86 Compare January 24, 2024 23:02
Base automatically changed from blockStreamerDeployment to main January 25, 2024 00:17
@darunrs darunrs force-pushed the coordinatorInterruption branch from 4377ea4 to 955d236 Compare January 25, 2024 00:30
@darunrs darunrs merged commit 920407a into main Jan 25, 2024
8 checks passed
@darunrs darunrs deleted the coordinatorInterruption branch January 25, 2024 00:38
@darunrs darunrs mentioned this pull request Feb 1, 2024
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.

Enable dedicated streams to start from interruption
2 participants