-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
[ISSUE #6873] Not update controller address list when the resolved result is empty #6874
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6874 +/- ##
==========================================
Coverage 42.90% 42.90%
+ Complexity 10370 10368 -2
==========================================
Files 1270 1270
Lines 88721 88721
Branches 11405 11405
==========================================
+ Hits 38062 38070 +8
+ Misses 45954 45946 -8
Partials 4705 4705 ☔ View full report in Codecov by Sentry. |
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~
I think we should differentiate between whether it throws an exception or actually returns null. And |
I think even if the actual is null, it should not be updated to null, because the actual is null is also abnormal. |
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.
If the parsing fails, it should be printed in the log. What are the benefits of setting it to null here?
I don't understand what you mean, here is the parsing failure will return null, so if it is null then it is not updated. The advantage of this is that if the dns exception will not replace the normal address of the controller with null |
If parsing fails, the api will return the empty list, not null you refered case can be provide more information for repetition ? |
…o weihubeats/develop
#6873