HDDS-3227. Ensure eviction of stateMachineData from cache only when both followers catch up#2704
Conversation
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
lokeshj1703
left a comment
There was a problem hiding this comment.
@bshashikant Thanks for working on this! I think we should make this change configurable along with the follower gap threshold in Ratis.
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
3984758 to
2ddbfb4
Compare
lokeshj1703
left a comment
There was a problem hiding this comment.
@bshashikant Thanks for updating the PR! I have a few comments inline.
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
a63cb43 to
4644ad1
Compare
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
lokeshj1703
left a comment
There was a problem hiding this comment.
@bshashikant Thanks for updating the PR! The changes look good to me. Only a minor comment. +1 o.w.
...a/org/apache/hadoop/ozone/container/common/transport/server/ratis/ContainerStateMachine.java
Outdated
Show resolved
Hide resolved
lokeshj1703
left a comment
There was a problem hiding this comment.
Rebase on master might help with failing CI.
2f41cde to
b1ab781
Compare
…oth followers catch up.
b1ab781 to
f21ce2a
Compare
|
The test failures are not related to the patch. |
|
It seems |
|
@bshashikant Thanks for the contribution! @bharatviswa504 @adoroszlai Thanks for the review! I have committed the PR to master branch. |
|
While vs. And it has timed out on Running it locally, I see |
|
OK, I think I found the problem: |
Thanks @adoroszlai for root causing the issue. |
What changes were proposed in this pull request?
Changing the stateMachine caching gurantees.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3227
How was this patch tested?
Existing UTs