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

Implement functionality in GrpcBlockItemWriter to allow sending of EndOfStream status codes #16157

Open
Tracked by #15428
derektriley opened this issue Oct 24, 2024 · 0 comments

Comments

@derektriley
Copy link
Contributor

derektriley commented Oct 24, 2024

Add functions to gRPC writer to allow sending of EndOfStream status (CN -> BN)
○ Block acknowledgement is a required feature
○ Earliest_block_number (local cache)
○ Latest_block_number(local cache)
○ Status
§ STREAM_END_RESET
□ No errors occurred, CN to reset occasionally?
§ STREAM_END_TIMEOUT
□ Delay between items was too long (BN didn't ack a block)
® Design mechanism for this? Configurable timeout?
□ CN should start a new stream before the failed block
§ STREAM_END_ERROR
□ Any scenario in which CN has internal errors and must try again
§ STREAM_END_TOO_FAR_BEHIND
□ BN too far behind
□ CN may stream to a different block node.
□ CN may resume streaming to this block node later.
Must include earliest and latest block available in EndOfStream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant