When run apply_to_state_machine or append_to_log failed. How should to do #909
Unanswered
bartliu827
asked this question in
Q&A
Replies: 1 comment
-
If it is a storage error, e.g., data corruption, it should return an "StorageError" to inform Openraft to shutdown at once. If it's an application error, the error should be wrapped in the async fn apply_to_state_machine(
&mut self,
entries: &[Entry<TypeConfig>],
) -> Result<Vec<Response>, StorageError<NodeId>> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When an error occurs in those callback, openraft will exit the main loop, causing the program not run correctly; How to solve this situation.
Beta Was this translation helpful? Give feedback.
All reactions