-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix: rollback command don't actually delete multistore versions (backport: #11361) #11982
Conversation
22dc1b6
to
bd4ca73
Compare
@@ -131,3 +132,5 @@ replace ( | |||
// the following version across all dependencies. | |||
google.golang.org/grpc => google.golang.org/grpc v1.33.2 | |||
) | |||
|
|||
replace github.com/tendermint/tendermint => github.com/yihuang/tendermint v0.34.14-0.20220518061324-81344ac9464d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
upstream PR: tendermint/tendermint#8574
needed for the --delete-pending-block
flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yihuang
Apologies for intruding into this wonderful space, but do you think --delete-pending-block
is still needed in the upstream cosmos-sdk
? (AFAIK, it did not go into the upstream 51d2de5 )
The reason I'm asking is because it was highly useful for me when I cherry-picked it to allow akash rollback work (had to use that --delete-pending-block
flag which was very helpful). :-)
More details in
cometbft/cometbft#1610
} | ||
|
||
if deletePendingBlock { | ||
if err := deletePendingBlockIfExists(cfg); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably don't need this feature in 0.46, since all the nodes with be running with the tendermint version that "validate block before persisting".
but we do need this to handle the cases that happen in legacy nodes.
I've run this successfully on a Cronos production node, it take 10hours to run though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are 2 api breaking changes: LoadVersionForOverwriting
and NewRollbackCmd
, so I don't think we should backport.
@yihuang Is there a way to includde this PR without any API breaking change?
|
Closes: cosmos#11333 - add unit tests - use LoadVersionForOverwriting - update tendermint dependency to 0.35.x release branch Co-authored-by: Aleksandr Bezobchuk <[email protected]> add flag --delete-pending-block fix build fix unit test flushMetadata after rollback
e49cc20
to
614906d
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
Closes: #11333
Co-authored-by: Aleksandr Bezobchuk [email protected]
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change