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

[2.0] Enable /v1/producer/pause_at_block #1057

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

heifner
Copy link
Member

@heifner heifner commented Dec 6, 2024

Needs to wait for 2.0.

Enable new /v1/producer/pause_at_block endpoint for pausing a node at a particular block number. Use /v1/producer/resume to resume after pause.

Resolves #570

@heifner heifner added the OCI Work exclusive to OCI team label Dec 6, 2024
@heifner heifner marked this pull request as draft December 6, 2024 13:53
@heifner heifner requested review from greg7mdp and linh2931 December 6, 2024 13:54
Copy link
Contributor

@greg7mdp greg7mdp left a comment

Choose a reason for hiding this comment

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

Nice test!

Comment on lines 71 to 73
assert headNode.getHeadBlockNum() == blockNum, "Head Node_02 did not pause at block"
assert specNode.getHeadBlockNum() == blockNum, "Speculative Node_03 did not pause at block"
assert irrvNode.getHeadBlockNum() == blockNum, "Irreversible Node_04 did not pause at block"
Copy link
Contributor

Choose a reason for hiding this comment

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

Regarding the comments, above we have headNode = cluster.getNode(3). Wouldn't that make it Node_03?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I added another node and didn't update the comments.

Copy link
Member Author

Choose a reason for hiding this comment

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

tests/pause_at_block_test.py Show resolved Hide resolved
Base automatically changed from GH-570-pause-at-block to main December 9, 2024 13:58
@heifner heifner linked an issue Dec 12, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pause-at-block option
2 participants