Skip to content

[ISSUE-3856] refine exception handling logic in commitTo in Raft…#3848

Merged
OneSizeFitsQuorum merged 2 commits intoapache:masterfrom
chengjianyun:refine/error-handling
Sep 7, 2021
Merged

[ISSUE-3856] refine exception handling logic in commitTo in Raft…#3848
OneSizeFitsQuorum merged 2 commits intoapache:masterfrom
chengjianyun:refine/error-handling

Conversation

@chengjianyun
Copy link
Copy Markdown
Contributor

The idea come from the discussion: #3833

Here I want to refine the error handling logic in commitTo to make cluster more robust and make code a bit more clear.

The idea here is don't let Raft group run into a invalid state when some error happened from Raft log persistence. And refine try catch block make the code clean.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 26, 2021

Coverage Status

Coverage decreased (-0.1%) to 67.228% when pulling ce96475 on chengjianyun:refine/error-handling into 228d62d on apache:master.

@chengjianyun chengjianyun marked this pull request as ready for review August 27, 2021 08:26
Copy link
Copy Markdown
Member

@neuyilan neuyilan left a comment

Choose a reason for hiding this comment

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

LGTM,
But I think we can make a further discussion in #3856

@HTHou HTHou added the Module - Cluster PRs for the cluster module label Sep 1, 2021
Copy link
Copy Markdown
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM~
Please fix grammer errors.

Comment thread cluster/src/main/java/org/apache/iotdb/cluster/log/manage/RaftLogManager.java Outdated
Comment thread cluster/src/main/java/org/apache/iotdb/cluster/log/manage/RaftLogManager.java Outdated
@HTHou HTHou changed the title [discussion-3833] refine exception handling logic in commitTo in Raft… [ISSUE-3856] refine exception handling logic in commitTo in Raft… Sep 6, 2021
@OneSizeFitsQuorum OneSizeFitsQuorum merged commit 2400c36 into apache:master Sep 7, 2021
cigarl pushed a commit to cigarl/iotdb that referenced this pull request Sep 30, 2021
…ache#3848)

* [discussion-3833] refine exception handling logic in commitTo in RaftLogManager

* fix grammer error

Co-authored-by: chengjianyun <chengjianyun@360.cn>
@chengjianyun chengjianyun deleted the refine/error-handling branch October 25, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module - Cluster PRs for the cluster module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants