Skip to content

[NC | NSFS | Glacier] handle ENOENT in _finalize_restore and fix glacier tests not running #8253

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

Conversation

tangledbytes
Copy link
Member

@tangledbytes tangledbytes commented Aug 5, 2024

Explain the changes

This PR simply adds the handler in _finalize_restore to make sure that it doesn't errors out if encounters ENOENT.

Fixes #8251

Testing Instructions:

  1. ./node_modules/.bin/mocha src/test/unit_tests/test_nsfs_glacier_backend.js
  • Doc added/updated
  • Tests added

@tangledbytes tangledbytes changed the title [NC | NSFS | Glacier] handle ENOENT in _finalize_restore [NC | NSFS | Glacier] handle ENOENT in _finalize_restore Aug 5, 2024
Signed-off-by: Utkarsh Srivastava <[email protected]>

handle ENOENT in open

Signed-off-by: Utkarsh Srivastava <[email protected]>
@tangledbytes tangledbytes force-pushed the utkarsh/nsfs/fix-finalize-restore-enoent branch from 50befa1 to 902aa31 Compare August 5, 2024 09:36
@tangledbytes
Copy link
Member Author

@guymguym, I have added 2 commits in this PR. One PR is the actual fix while the other one fixes the glacier tests not running (my guess since about 3 weeks now). I have split the commits for the ease of backport at least as one would be picked up by DBS3.

@tangledbytes tangledbytes requested a review from guymguym August 5, 2024 09:38
@tangledbytes tangledbytes changed the title [NC | NSFS | Glacier] handle ENOENT in _finalize_restore [NC | NSFS | Glacier] handle ENOENT in _finalize_restore and fix glacier tests not running Aug 5, 2024
@tangledbytes tangledbytes merged commit 7b46193 into noobaa:master Aug 5, 2024
10 checks passed
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 | NC | GLACIER restore flow needs to handle ENOENT
2 participants