-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add ServiceRuntime#beforeCommit [ECR-3584] #1132
Add ServiceRuntime#beforeCommit [ECR-3584] #1132
Conversation
@@ -98,6 +98,21 @@ default void configure(Fork fork, Configuration configuration) { | |||
*/ | |||
void createPublicApiHandlers(Node node, Router router); | |||
|
|||
/** | |||
* Handles the changes made by all transactions included in the upcoming block. |
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.
@alekseysidorov would you check please if the user-facing documentation is accurate?
*/ | ||
void createCheckpoint() { | ||
public void createCheckpoint() { | ||
// todo: (1) Are nested rollbacks supported, or is the existing checkpoint lost when a new one |
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 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.
Nested rollbacks are not possible, only one checkpoint is available at time.
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.
OK, I submitted a task to consider to hide this operation, but I had initially misunderstood how it works and the possible consequences: as multiple rollbacks do not reset the state to the initial fork state, changes made by other services won't be affected.
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.
The new test and the updated documentation must hopefully clarify the things.
Replace the mistakenly imported assertThat method with the main one.
b17f6dc
to
df7cb84
Compare
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.
👍
Also, resolve the todo and improve the documentation.
Overview
Add
ServiceRuntime#beforeCommit
.See: https://jira.bf.local/browse/ECR-3584
Definition of Done