Skip to content

Conversation

wujimin
Copy link
Contributor

@wujimin wujimin commented Aug 18, 2017

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

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 85.374% when pulling 656279b on wujimin:assert-rpc-before-sdk-init into fdddcc4 on ServiceComb:master.


public void prepare() {
referenceConfig = CseContext.getInstance().getConsumerProviderManager().getReferenceConfig(microserviceName);
protected void prepare() {
Copy link
Member

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.

Copy link
Contributor Author

@wujimin wujimin Aug 18, 2017

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

Copy link
Member

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() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@WillemJiang WillemJiang merged commit 984a00b into apache:master Aug 18, 2017
@WillemJiang WillemJiang changed the title Assert rpc before sdk init Assert rpc invocation cannot start before sdk init Aug 18, 2017
@WillemJiang WillemJiang added this to the 0.2.0 milestone Aug 18, 2017
@wujimin wujimin deleted the assert-rpc-before-sdk-init branch August 23, 2017 08:54
@wujimin wujimin changed the title Assert rpc invocation cannot start before sdk init JAV-286 Assert rpc invocation cannot start before sdk init Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants