-
Notifications
You must be signed in to change notification settings - Fork 80
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
NC | NSFS | Versioning | Fix Bug 8333 | Delete Object with Version ID | GPFS #8345
NC | NSFS | Versioning | Fix Bug 8333 | Delete Object with Version ID | GPFS #8345
Conversation
61ba309
to
3b602ab
Compare
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 let's not merge it until it's tested on GPFS
@shirady can you add a test to test_nsfs_versioning_gpfs.js? |
3b602ab
to
c346aa4
Compare
Validation on GPFS cluster:I used this RPM: noobaa-core-5.18.0-20240917-nsfs-nc-versioning-fixes.el9.x86_64.rpm Cluster node:
Client node:
From the logs (
Outputs are as expected, no errors. |
1. Change the calls of native_fs_utils.safe_unlink that are used gpfs_options as it was received from _open_files_gpfs which can return an object with property delete_version or an object with 2 properties move_to_versions and move_to_dst, hence when using this returned object to the function native_fs_utils.safe_unlink the argument gpfs_options should an object with the properties src_file and dir_file. Signed-off-by: shirady <[email protected]>
c346aa4
to
c65039b
Compare
Explain the changes
native_fs_utils.safe_unlink
that are usedgpfs_options
as it was received from_open_files_gpfs
which can return an object with propertydelete_version
or an object with 2 propertiesmove_to_versions
andmove_to_dst
, hence when using this returned object to the functionnative_fs_utils.safe_unlink
the argumentgpfs_options
should an object with the propertiessrc_file
anddir_file
.Issues: Fixed #8333
Testing Instructions: