-
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-1798. Propagate failure in writeStateMachineData to Ratis. Contributed by Supratim Deka #1113
Conversation
💔 -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.
The changes look good to me. Lets create a followup for a unit test for this.
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
"Requested operation not allowed as ContainerState is UNHEALTHY")); | ||
} | ||
key.close(); | ||
|
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. |
...test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestContainerStateMachineFailures.java
Outdated
Show resolved
Hide resolved
...test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestContainerStateMachineFailures.java
Outdated
Show resolved
Hide resolved
/retest |
Thanks @supratimdeka for working on this and @mukul1987 for review. I have committed this change to trunk. |
…ibuted by Supratim Deka (apache#1113)
https://issues.apache.org/jira/browse/HDDS-1798
unit test is pending. Will add the infra required for testing this change as part of https://issues.apache.org/jira/browse/HDDS-1818
writeStateMachineData() currently returns a future to Ratis. The scope of this jira is to signal any errors or failures encountered as part of the operation - WriteChunk / handleWriteChunk() to Ratis via this future. As of now, the future does not track failures.
This change is required to complete the failure handling done in HDDS-1603.