-
Notifications
You must be signed in to change notification settings - Fork 826
[JAV-576] The service instance state can‘t be invoked by the client when it is DOWN #439
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
Conversation
cacheMap.put(key, new InstanceCache(appId, microserviceName, version, instMap)); | ||
break; | ||
} | ||
instMap.put(changedEvent.getInstance().getInstanceId(), changedEvent.getInstance()); |
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.
how about putting this line in the else clause to avoid duplicate statement of line 155 and 159?
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
Please check #449 for more details |
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.
we already done this in:
io.servicecomb.serviceregistry.cache.InstanceCache.createTransportMap()
io.servicecomb.serviceregistry.consumer.MicroserviceVersions.setInstances(List)
what's the existing problem?
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.
check mentioned issues, already done in new implementation
sdk在push和pull时需要作判断,sdk不访问实例状态为DOWN的实例