-
Notifications
You must be signed in to change notification settings - Fork 827
JAV-286 Assert rpc invocation cannot start before sdk init #120
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
JAV-286 Assert rpc invocation cannot start before sdk init #120
Conversation
…ntrol this logic.
|
||
public void prepare() { | ||
referenceConfig = CseContext.getInstance().getConsumerProviderManager().getReferenceConfig(microserviceName); | ||
protected void prepare() { |
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.
It's not binary compatible change, it's better to keep the method signature there.
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.
prepare method was added yesterday
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.
OK
|
||
public void prepare() { | ||
referenceConfig = CseContext.getInstance().getConsumerProviderManager().getReferenceConfig(microserviceName); | ||
protected void prepare() { |
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.
OK
old implementation had bugs:
1.we set ready in EventType.AFTER_REGISTER
and we suggest developers begin their logic by listen EventType.AFTER_REGISTER too
these two logic's order is undefined
2.invocationFactory is not the invoke entry, we have 3 entries:
a.Invoker
b.CseClientHttpRequest.createRequestMeta
c.InvokerUtils
if developers make remote call in invalid stage, sdk maybe throw exception before invocationFactory