Skip to content

NSFS | GPFS | fix put object over null version in suspended mode#8386

Merged
nadavMiz merged 1 commit into
noobaa:masterfrom
nadavMiz:put-object-null-suspended
Sep 24, 2024
Merged

NSFS | GPFS | fix put object over null version in suspended mode#8386
nadavMiz merged 1 commit into
noobaa:masterfrom
nadavMiz:put-object-null-suspended

Conversation

@nadavMiz

@nadavMiz nadavMiz commented Sep 19, 2024

Copy link
Copy Markdown
Contributor

Explain the changes

  1. on Suspeded mode we need to delete the latest null version if a new object is created (as there can be only one object with null version). this delete fails on GPFS since we use the wrong gps_options. however since in GPFS link overrides existing file anyway, we don't need to call unlink at all in such scenario. changed so unlink will not be called to delete latest null version on Suspended mode for GPFS
  2. add missing use of gpfs_options.delete_version instead of gpfs_options for deleting old null version

Issues: Fixed #8379

Testing Instructions:

Run test_nsfs_versioning_gpfs.js tests on gpfs cluster

  • Doc added/updated
  • Tests added

Comment thread src/sdk/namespace_fs.js Outdated
Comment thread src/sdk/namespace_fs.js
Comment thread src/sdk/namespace_fs.js
Comment thread src/sdk/namespace_fs.js
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch 2 times, most recently from 99ab82c to f944c29 Compare September 19, 2024 15:21
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch from f944c29 to 2396533 Compare September 19, 2024 15:22
Comment thread src/sdk/namespace_fs.js Outdated
@nadavMiz nadavMiz requested a review from romayalon September 19, 2024 15:37
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch from 2396533 to 217d311 Compare September 22, 2024 07:19
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch 6 times, most recently from d4da795 to ab82fcb Compare September 24, 2024 07:31
@pull-request-size pull-request-size Bot added size/S and removed size/M labels Sep 24, 2024
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch from ab82fcb to 4a6197b Compare September 24, 2024 07:32
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch from 4a6197b to 767070e Compare September 24, 2024 10:18
Signed-off-by: nadav mizrahi <nadav.mizrahi16@gmail.com>
@nadavMiz nadavMiz force-pushed the put-object-null-suspended branch from 767070e to 24bd9c4 Compare September 24, 2024 10:43
@nadavMiz nadavMiz merged commit 00a44f4 into noobaa:master Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NSFS | S3 | Versioning: InternalError upon PutObject over existing key in version-suspended bucket

2 participants