-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDDS-2210. ContainerStateMachine should not be marked unhealthy if ap… #1552
Conversation
…plyTransaction fails with closed container exception.
@@ -270,12 +270,16 @@ public void persistContainerSet(OutputStream out) throws IOException { | |||
// container happens outside of Ratis. | |||
IOUtils.write(builder.build().toByteArray(), out); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @bshashikant, the patch looks good to me. Can you please take care of some of the minor checkstyle issues ?
@@ -759,7 +767,7 @@ public void notifyIndexUpdate(long term, long index) { | |||
// add the entry to the applyTransactionCompletionMap only if the | |||
// stateMachine is healthy i.e, there has been no applyTransaction | |||
// failures before. | |||
if (isStateMachineHealthy.get()) { | |||
if (stateMachineHealthy.get()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets replace this with isStateMachineHealthy
@@ -270,12 +270,16 @@ public void persistContainerSet(OutputStream out) throws IOException { | |||
// container happens outside of Ratis. | |||
IOUtils.write(builder.build().toByteArray(), out); | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace:end of line
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, the patch looks good to me.
💔 -1 overall
This message was automatically generated. |
…plyTransaction fails with closed container exception(apache#1552).
…plyTransaction fails with closed container exception(apache#1552).
…plyTransaction fails with closed container exception(apache#1552).
…plyTransaction fails with closed container exception.
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute