-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-4524. Create freon test to measure closed container replication #1635
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
I think this depends on On another note, trying to run Is this expected? Do you know a workaround for that (other than deleting |
jojochuang
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.
Overall looks good. Just some nits
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/ClosedContainerReplicator.java
Outdated
Show resolved
Hide resolved
I can implement an automatic delete, but I think it's more safe to live it for the users. It seems to be more safe to fail when the directory is not empty (harder to understand what was downloaded) and ask users to delete the dir. But I am not sure, can be convinced. |
|
@jojochuang Thanks for the suggestions, I updated the branch with them. |
Agreed. Can you add a comment somewhere to remind users to delete the dir in case of this error? |
Sure. I added a check to return with more meaningful error. (5aa2fcc) |
adoroszlai
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.
Thanks @elek for updating the patch.
|
Merged. Thanks the review @adoroszlai and @jojochuang |
What changes were proposed in this pull request?
Create new Freon test for the closed container replication.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4524
How was this patch tested?
Containers supposed to be visible under /tmp/....
Note: this patch requires the changes in #1551