Skip to content
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 | Add Concurrency Tests #8394

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

shirady
Copy link
Contributor

@shirady shirady commented Sep 23, 2024

Explain the changes

  1. Add 2 cases to our concurrency tests:
  • Key with 5 versions, concurrent delete of 3 latest versions (no veID) -> 3 delete markers
  • Start with 1 version, 10 Puts + 10 Reads (latest) concurrent nothing fails -> 11 version IDs
  1. Refactor the file test_versioning_concurrency for reuse: move tmp_fs_path and nsfs as global variables, add the helper function _upload_versions from existing code to avoid code duplication.

Issues: Fixed #xxx / Gap #xxx

  1. In test concurrent put object and head object latest version notice that I increased the retries for 10 iterations (I could use the default with 5 iterations).

Testing Instructions:

  1. sudo npx jest test_versioning_concurrency.test.js
  • Doc added/updated
  • Tests added

@shirady shirady force-pushed the nsfs-nc-versioning-concurrency-tests branch from 725ca55 to 9cc8b90 Compare September 23, 2024 10:03
@shirady shirady self-assigned this Sep 23, 2024
@shirady shirady force-pushed the nsfs-nc-versioning-concurrency-tests branch 2 times, most recently from 2c262f6 to a534e27 Compare September 25, 2024 07:00
1. Add 2 cases to our concurrency tests:
  - Key with 5 versions, concurrent delete of 3 latest versions (no veID) -> 3 delete markers
  - Start with 1 version, 10 Puts + 10 Reads (latest) concurrent nothing fails -> 11 version IDs
2. Refactor the file test_versioning_concurrency for reuse: move tmp_fs_path and nsfs as global variables, add the helper function _upload_versions from existing code to avoid code duplication.

Signed-off-by: shirady <[email protected]>
@shirady shirady force-pushed the nsfs-nc-versioning-concurrency-tests branch from 40d2c6a to 10d6fc7 Compare September 25, 2024 13:41
@shirady shirady merged commit 80c3f7a into noobaa:master Sep 25, 2024
10 checks passed
@shirady shirady deleted the nsfs-nc-versioning-concurrency-tests branch September 25, 2024 14:20
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