-
Notifications
You must be signed in to change notification settings - Fork 77
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
[bugfix] return NotFound error when delete fails in multiUpdate #1681
[bugfix] return NotFound error when delete fails in multiUpdate #1681
Conversation
Signed-off-by: vankichi <[email protected]>
[CHATOPS:HELP] ChatOps commands.
|
Codecov Report
@@ Coverage Diff @@
## master #1681 +/- ##
==========================================
- Coverage 31.20% 31.17% -0.04%
==========================================
Files 372 372
Lines 32502 32503 +1
==========================================
- Hits 10142 10132 -10
- Misses 21982 21990 +8
- Partials 378 381 +3
Continue to review full report at Codecov.
|
Signed-off-by: vankichi <[email protected]>
d07b92c
to
e04f14a
Compare
Co-authored-by: Yusuke Kato <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
Signed-off-by: vankichi [email protected]
Description:
The delete index function runs in the
multiUpdate
, but it does not returnNotFound
error when the index does not exist inpkg/agent/core/ngt
layer.It affects when vald agent standalone.
This PR changes the flag validation as true to return
NotFound
error.In addition, I have fixed the
readyForUpdate
method.When the error occurs in
GetObject()
, whichreadyForUpdate
calls,readyForUpdate
returns error.Related Issue:
How Has This Been Tested?:
Environment:
Types of changes:
Changes to Core Features:
Checklist: