Skip to content

Conversation

@romayalon
Copy link
Contributor

@romayalon romayalon commented Jan 4, 2023

Explain the changes

  1. Delete object/ Delete multiple objects support deletion by versioning status.

  2. Implementation of delete object versioning enabled in general -
    2.1. If the user passed version id -
    2.1.1. The actual version should be deleted
    2.1.2. If the deleted version is the latest version we should promote the second latest to be the latest
    2.2. else
    2.2.1. The latest version (if exists) should move to .versions/
    2.2.2. A delete marker should be created in .versions/

  3. Added 3 new helper functions - _delete_object_versioning_enabled(), create_delete_marker(), find_max_version_past().

  4. Added unit tests in test_bucketspace_versioning.js

Issues: Fixed #xxx / Gap #xxx

  1. Gaps -
    1.1. Open question regarding the prev_version xattr optimization - on deletion of version id - how we can update the prev version xattr of the following version of the deleted one
    1.2. Tests for delete_multiple_objects / test_nsfs_versioning (currently I added the tests in test_bucketspace_versioning)

Testing Instructions:

  • Doc added/updated
  • Tests added

@romayalon romayalon force-pushed the romy-nsfs-delete-object branch from afe7a54 to ef4b663 Compare January 8, 2023 15:29
@romayalon romayalon force-pushed the romy-nsfs-delete-object branch 3 times, most recently from 96d3c39 to 38ad9d1 Compare January 9, 2023 14:01
@romayalon romayalon requested a review from jackyalbo January 9, 2023 14:03
@romayalon romayalon changed the title WIP | NSFS | Versioning | ENABLED | Delete object / Delete multiple objects implementation NSFS | Versioning | ENABLED | Delete object / Delete multiple objects implementation Jan 9, 2023
@romayalon romayalon force-pushed the romy-nsfs-delete-object branch 4 times, most recently from 7949e60 to 30eec56 Compare January 16, 2023 07:56
@romayalon romayalon force-pushed the romy-nsfs-delete-object branch 3 times, most recently from f347162 to 803a851 Compare January 17, 2023 08:03
@romayalon romayalon force-pushed the romy-nsfs-delete-object branch 2 times, most recently from 17551f4 to e0aff80 Compare January 18, 2023 20:52
@romayalon romayalon force-pushed the romy-nsfs-delete-object branch from 0bd102a to 0b0d1ac Compare January 19, 2023 14:27
Signed-off-by: Romy <romy2232@gmail.com>
@romayalon romayalon force-pushed the romy-nsfs-delete-object branch from 0b0d1ac to 3b08e65 Compare January 19, 2023 14:37
@romayalon romayalon merged commit 5799691 into noobaa:master Jan 19, 2023
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.

3 participants