You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/08/31 03:42:42 UTC
[GitHub] [iotdb] chengjianyun commented on issue #3856: About refine the exception handling logic in method commitTo in RaftLogManager
chengjianyun commented on issue #3856:
URL: https://github.com/apache/iotdb/issues/3856#issuecomment-908872873
> Thanks for point out the issue, I agree with solution 2, but I think the issue happens because we do not have one rollback mechanism, if some error happens during the `commitTo`, we rollback all the previous operations to make the `committedEntries`、`unCommittedEntries`、`stableEntries` consist with each other, the issue would be resoleved?
Yes, if we can rollback the operation, then the issue is resolved. In etcd, Raft only takes charge of maintain the consistency between raft logs, the apply or log persistence logic is left for Raft client. The raft client need to consider how to handle these state machine errors when apply or persist log.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org