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

Improve: make sending rpc-response a command and enqueue it in the command list #667

Merged
merged 2 commits into from
Feb 11, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Feb 11, 2023

Changelog

Improve: make sending rpc-response a command and enqueue it in the command list

Sending rpc(vote, append-entries and install-snapshot) response must be
after executing the commands generated by Engine.
Thus introduce Command for doing such actions, e.g., tx.send(res).

Command execution can be reordered or batched for performance.

Because oneshot::Sender is not Clone, Command and other related types that includes it are adjusted.

Refactor: vote checking and handling is same for every incoming event.

This change is Reviewable

…mmand list

Sending rpc(vote, append-entries and install-snapshot) response must be
after executing the commands generated by Engine.
Thus introduce `Command` for doing such actions, e.g., `tx.send(res)`.

Command execution can be reordered or batched for performance.

Because `oneshot::Sender` is not `Clone`, `Command` and other related types that includes it are adjusted.
@drmingdrmer drmingdrmer merged commit 22f01b2 into databendlabs:main Feb 11, 2023
@drmingdrmer drmingdrmer deleted the 80-following branch February 11, 2023 23:54
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.

1 participant