-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: Return io error other than NotExist
refreshing config
#38924
base: master
Are you sure you want to change the base?
fix: Return io error other than NotExist
refreshing config
#38924
Conversation
Related to milvus-io#38923 This PR: - Check whether `os.Stat` config file error is io.ErrNotExist - Panic if refresher get error Signed-off-by: Congqi Xia <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@congqixia go-sdk check failed, comment |
@congqixia E2e jenkins job failed, comment |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #38924 +/- ##
===========================================
- Coverage 81.13% 69.53% -11.61%
===========================================
Files 1385 296 -1089
Lines 196070 26540 -169530
===========================================
- Hits 159088 18455 -140633
+ Misses 31393 8085 -23308
+ Partials 5589 0 -5589
|
rerun go-sdk |
/run-cpu-e2e |
@congqixia go-sdk check failed, comment |
go-sdk |
rerun go-sdk |
@congqixia go-sdk check failed, comment |
rerun go-sdk |
@congqixia go-sdk check failed, comment |
rerun go-sdk |
if os.IsNotExist(err) { | ||
continue | ||
} | ||
return err |
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.
Can we make sure the err thrown here is properly handled?
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.
according to discussion offline, this error shall be handled by caller
Signed-off-by: Congqi Xia <[email protected]>
Signed-off-by: Congqi Xia <[email protected]>
@congqixia go-sdk check failed, comment |
Signed-off-by: Congqi Xia <[email protected]>
/lgtm |
Signed-off-by: Congqi Xia <[email protected]>
New changes are detected. LGTM label has been removed. |
Related to #38923
This PR:
os.Stat
config file error is io.ErrNotExist