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

docs: RFC for Optimistic Execution #16499

Merged
merged 8 commits into from
Aug 8, 2023
Merged

docs: RFC for Optimistic Execution #16499

merged 8 commits into from
Aug 8, 2023

Conversation

facundomedica
Copy link
Member

@facundomedica facundomedica commented Jun 12, 2023

Description

See rendered

TODO:

  • understand why it's not possible to do OE during an upgrade (I have a very rough idea, but would like to be able to explain it)
  • understand what would happen if we allow OE during round > 0.

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...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

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...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@alexanderbez alexanderbez self-assigned this Jun 12, 2023
@facundomedica
Copy link
Member Author

understand why it's not possible to do OE during an upgrade (I have a very rough idea, but would like to be able to explain it)

Normally when panicking in FinalizeBlock the app panics because there's no recovery. On other ABCI methods there is a panic recovery, like in ProcessProposal. So because we call FinalizeBlock from ProcessProposal, any panic will get recovered.

@facundomedica facundomedica mentioned this pull request Jun 16, 2023
19 tasks
@alexanderbez
Copy link
Contributor

@facundomedica should we sync on this?

@github-actions
Copy link
Contributor

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.

@github-actions github-actions bot added the Stale label Jul 21, 2023
@github-actions github-actions bot closed this Jul 25, 2023
@tac0turtle
Copy link
Member

@facundomedica we should wrap this up so we dont lose the information

@facundomedica facundomedica marked this pull request as ready for review July 27, 2023 13:27
@facundomedica facundomedica requested a review from a team as a code owner July 27, 2023 13:27
@github-prbot github-prbot requested review from a team, atheeshp and likhita-809 and removed request for a team July 27, 2023 13:27
@facundomedica facundomedica changed the title docs: [WIP] RFC for Optimistic Execution docs: RFC for Optimistic Execution Jul 27, 2023
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

Nice work! Left a few minor comments.

One thing I'd like to see is actual design/code around goroutine management. I.e. spawning them, ensuring only 1 exists at a time, canceling one and waiting for completion.

docs/rfc/rfc-002-optimistic-execution.md Outdated Show resolved Hide resolved
docs/rfc/rfc-002-optimistic-execution.md Outdated Show resolved Hide resolved
docs/rfc/rfc-002-optimistic-execution.md Outdated Show resolved Hide resolved
docs/rfc/rfc-002-optimistic-execution.md Outdated Show resolved Hide resolved
docs/rfc/rfc-002-optimistic-execution.md Outdated Show resolved Hide resolved
docs/rfc/rfc-002-optimistic-execution.md Outdated Show resolved Hide resolved
facundomedica and others added 2 commits August 2, 2023 11:08
@tac0turtle
Copy link
Member

overall looks good. making it optional for now, via a variable on by the developers not by the node operators would be good. In the worst case it would be good to allow a coordinated override, but this could be done with a new binary as the change is not consensus breaking

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

LGTM

@facundomedica facundomedica added this pull request to the merge queue Aug 8, 2023
Merged via the queue into main with commit adb65c9 Aug 8, 2023
@facundomedica facundomedica deleted the facu/oe-rfc branch August 8, 2023 16:02
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.

5 participants