Skip to content

Conversation

@WenyXu
Copy link
Member

@WenyXu WenyXu commented Dec 10, 2025

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

This PR fixes two issues in the procedure runner:

  1. Procedure state not updated to Running after retry: When a procedure transitions from Retrying state back to execution (via Status::Executing or Status::Suspended), the procedure state was not being updated to Running. This could cause incorrect state reporting and potential issues with procedure monitoring.

  2. Incorrect rollback state for procedures that don't support rollback: When a procedure fails but does not support rollback (i.e., rollback_supported() returns false), the runner was still setting the state to PrepareRollback. Now it correctly sets the state to Failed for such procedures.

PR Checklist

Please convert it to a draft if some of the following conditions are not met.

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR requires documentation updates.
  • API changes are backward compatible.
  • Schema or data changes are backward compatible.

@github-actions github-actions bot added size/S docs-not-required This change does not impact docs. labels Dec 10, 2025
@WenyXu WenyXu force-pushed the fix/procedure-runner branch from 8ab5f59 to 618e926 Compare December 10, 2025 06:07
… on failure

Signed-off-by: WenyXu <wenymedia@gmail.com>
@WenyXu WenyXu force-pushed the fix/procedure-runner branch from 618e926 to f6cf674 Compare December 10, 2025 07:45
@MichaelScofield MichaelScofield added this pull request to the merge queue Dec 11, 2025
Merged via the queue into GreptimeTeam:main with commit 1d5291b Dec 11, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-not-required This change does not impact docs. size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants