-
Notifications
You must be signed in to change notification settings - Fork 153
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: spring cloud error and refactor event callback #367
Conversation
rm all output file when make clean
2. add zookeeper root path config
Codecov Report
@@ Coverage Diff @@
## develop-0.5.0 #367 +/- ##
==============================================
Coverage 39.66% 39.66%
==============================================
Files 52 52
Lines 3061 3061
==============================================
Hits 1214 1214
Misses 1717 1717
Partials 130 130 Continue to review full report at Codecov.
|
e326fc7
to
1cb658f
Compare
for _, instance := range discovery.getServiceMap()[sn] { | ||
discovery.delServiceInstance(instance) | ||
} | ||
if !contains(fetchChildren, sn) { |
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.
fix this.
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.
done
|
||
for _, serviceName := range fetchChildren { | ||
serviceNodePath := strings.Join([]string{z.servicesPath, serviceName}, constant.PathSlash) | ||
instances := serviceMap[serviceName] | ||
if instances == nil || len(instances) == 0 { | ||
z.svcListeners.RemoveListener(serviceNodePath) |
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.
Same
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.
done
* rm all output file when make clean * 1. fix error log and event callback 2. add zookeeper root path config * fmt... * close the service instance listener when it not working and after retry * fix the CI * clean Co-authored-by: Randy <[email protected]> Co-authored-by: Xin.Zh <[email protected]>
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: