-
Notifications
You must be signed in to change notification settings - Fork 516
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-12075. Update read replica command to handle slash character in key names #7693
base: master
Are you sure you want to change the base?
Conversation
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 @ptlrs for the patch.
read-replicas
produces output into local dir, whose name is calculated like volume_bucket_key_date
. It does not create subdirectories for volume and bucket, so I don't think it should create subdirectories if the key name happens to include /
. The tool should simply replace any /
in the key name with _
. I think this would be more consistent with the existing dir naming scheme, and also simplify user experience.
Thank you for the reivew @adoroszlai. I had the same thought of replacing For example, While we do use a timestamp suffix to allow multiple runs of Is this a significant inconvenience? If not, then I can make this change. |
Thanks @ptlrs for the background on this.
This is a debug command, so I think it's OK. Let's wait for others' opinion before making changes to the patch. |
What changes were proposed in this pull request?
Key names may include arbitrary number of
/
characters, such as/volumename/bucketname/test1/test2
.The read-replicas command assumes key names will be single level or not include any
/
characters. This results in failures when the command is run on multilevel keys.This PR:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-12075
How was this patch tested?
Tested locally by running the robot tests
CI:
https://github.com/ptlrs/ozone/actions/runs/12763363095