Skip to content

feat: make handshake cancelable (backport #857)#1011

Merged
sergio-mena merged 1 commit intocometbft:v0.38.xfrom
yihuang:v0.38.x
Jun 22, 2023
Merged

feat: make handshake cancelable (backport #857)#1011
sergio-mena merged 1 commit intocometbft:v0.38.xfrom
yihuang:v0.38.x

Conversation

@yihuang
Copy link
Contributor

@yihuang yihuang commented Jun 21, 2023

it'll make the handshake work with graceful shutdown(see: cosmos/cosmos-sdk#16202)

handshake could be a long running process if there are many local blocks to replay, for example we use it to do profiling.

this one can be backport to 0.37 and 0.34.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

it'll make the handshake work with graceful shutdown(see: cosmos/cosmos-sdk#16202)

handshake could be a long running process if there are many local blocks to replay, for example we use it to do profiling.

Hope we can backport this to 0.34.x.

---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code comments
@yihuang yihuang requested a review from a team as a code owner June 21, 2023 08:14
@yihuang yihuang changed the title feat: make handshake cancelable (#857) feat: make handshake cancelable (backport #857) Jun 21, 2023
@yihuang yihuang mentioned this pull request Jun 21, 2023
3 tasks
Copy link
Contributor

@mzabaluev mzabaluev left a comment

Choose a reason for hiding this comment

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

Looks good as a backport to me.

Copy link
Collaborator

@sergio-mena sergio-mena left a comment

Choose a reason for hiding this comment

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

We might need to refactor this in a breaking way (to simplify) in a future release. But this is good for a backport

@yihuang
Copy link
Contributor Author

yihuang commented Jun 21, 2023

We might need to refactor this in a breaking way (to simplify) in a future release. But this is good for a backport

the breaking version is already in main branch, is that what you mean?

@sergio-mena
Copy link
Collaborator

is that what you mean?

Oh yes, I had missed that. All good

@sergio-mena sergio-mena self-assigned this Jun 21, 2023
@tac0turtle
Copy link
Contributor

thank you!!

@sergio-mena sergio-mena merged commit aca3a06 into cometbft:v0.38.x Jun 22, 2023
@yihuang yihuang deleted the v0.38.x branch June 22, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants