-
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 | Glacier] Filter out failed recalls #8044
[NC | NSFS | Glacier] Filter out failed recalls #8044
Conversation
440bda9
to
508f79b
Compare
508f79b
to
203a0ad
Compare
203a0ad
to
5b6fc3d
Compare
f502d35
to
0ed81fb
Compare
Hi, Very quick review/comment. The command "task show -r" displays success or failure counts at the head of each task. (It might be more concrete to run "eeadm file state" for each of the files given after the task has finished since the information we need is the actual status of the file, not the result of the recall command. Though I guess this could be handled in the future.) What we need to care about is the definition of the "Success" and "Failed" tasks. If NooBaa removes any dup file requests before handing it to EE's recall, we are good. |
@y-sasn, if we find a failure which has the error code of "duplicate task" then we don't consider it to be a failure and don't requeue the task. Does that sound okay? |
@tangledbytes Yes, if one of the other "dup" tasks fails due to a different reason, I'm guessing that that file will be queued. If that's the case I'm guessing we're good. |
@y-sasn, yes if we find any other failure code then we requeue the item. |
fac31c6
to
132d4e6
Compare
132d4e6
to
ccaa458
Compare
1408f27
to
58a29c4
Compare
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> update comments Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> fix linting issue Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> revamp restore code and add tests Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> add more tests Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> add cleanup to the test Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> address self review comments Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> fix partial failure of finalize_restore Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> improving task_show output parsing Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> fix parsing edge case Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> fix formatting Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com> add error logging Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
58a29c4
to
b1c3570
Compare
Explain the changes
This PR fixes a major issue where NooBaa records the failures for retries but does NOT filters out the failed recalls while assigning extended attributes. This will make it seem to NSFS process that the object is restored and it will allow read which will result in a blocking read!
Testing Instructions:
./node_modules/.bin/mocha src/test/unit_tests/test_nsfs_glacier_backend.js