-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-8382. Upgrade Ratis to 2.5.1 #4664
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
Conversation
|
With Ratis 2.5.1, block is deleted contrary to test expectations. This results in two kinds of failures, depending on timing: Lines 305 to 306 in 7f7ec23
Lines 307 to 317 in 7f7ec23
When block deletion reaches the following condition: Lines 223 to 232 in 7f7ec23
with Ratis 2.5.1 I think the |
| long minReplicatedIndex = | ||
| ratisServer.getMinReplicatedIndex(pipelineID); | ||
| long containerBCSID = containerData.getBlockCommitSequenceId(); | ||
| if (minReplicatedIndex >= 0 && minReplicatedIndex < containerBCSID) { |
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.
Is this intended? oh I should've read the comment above first: #4664 (comment)minReplicatedIndex could be -1, thus getting rid of the minReplicatedIndex >= 0 condition here changes the logic slightly.
cc @szetszwo
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.
I agree that it is correct to remove minReplicatedIndex >= 0.
smengcl
left a comment
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.
lgtm. but I'd prefer another eye on this.
szetszwo
left a comment
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 change looks good.
| long minReplicatedIndex = | ||
| ratisServer.getMinReplicatedIndex(pipelineID); | ||
| long containerBCSID = containerData.getBlockCommitSequenceId(); | ||
| if (minReplicatedIndex >= 0 && minReplicatedIndex < containerBCSID) { |
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.
I agree that it is correct to remove minReplicatedIndex >= 0.
What changes were proposed in this pull request?
Upgrade Ratis to 2.5.1.
Fix for compilation error in tests due to interface change was provided by @szetszwo. When merging this, please keep the following detail in the commit message:
https://issues.apache.org/jira/browse/HDDS-8382
How was this patch tested?
CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/4891132333