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

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

Merged
merged 1 commit into from
Jun 22, 2023

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
Contributor

@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
Contributor

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
19 checks passed
@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.

None yet

4 participants