improve: raft state machine should report error by zyxxoo · Pull Request #2871 · apache/hugegraph
Pull Request Overview
This PR improves error handling in Raft state machines by ensuring that errors are properly reported to the iterator when exceptions occur during state machine operations.
- Adds error reporting via
setErrorAndRollback()when exceptions are caught during state machine operations - Implements consistent error handling across both store and PD components
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| HgStoreStateMachine.java | Adds error reporting call when exceptions occur during state machine operations |
| RaftStateMachine.java | Adds error reporting call when exceptions occur during state machine operations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.