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

Rollback support to preemptively cancel and rollback current block ex… #1150

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

charithabandi
Copy link
Contributor

@charithabandi charithabandi commented Dec 11, 2024

…ecution
yet to add kwil-admin command to issue cancellation request and block execution status request. But rest is good.

Added support for leader to manually trigger block cancellation and also provide a list of long running transactions to be purged from the mempool and re-propose a block for the same height.
Leader upon receiving this cancellation request will broadcast the resetState messages to all the validators, who upon receiving the resetMsg will stop the block execution and rollback the state.

If leader has already executed the transactions by the time we receive the cancellation request, should we still reject the current block and propose a new block or should it just ignore the request? Right now I am ignoring, but can be changed.

@charithabandi charithabandi marked this pull request as draft December 11, 2024 22:36
Copy link
Member

@jchappelow jchappelow left a comment

Choose a reason for hiding this comment

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

LGTM with resetCount removed. Will have to look at nested locking carefully, but I don't see any issues presently.

@jchappelow jchappelow merged commit 5abc566 into main Dec 12, 2024
2 checks passed
@jchappelow jchappelow deleted the resetState branch December 12, 2024 15:54
@jchappelow jchappelow restored the resetState branch December 12, 2024 15:54
@jchappelow jchappelow deleted the resetState branch December 12, 2024 15: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
2 participants