Skip to content

Conversation

liubao68
Copy link
Contributor

1.instance not unregistered when shutdown and auto-discovery not work because not use the correct new sc api
2. and we choose any address configured first in a random fashion

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 86.861% when pulling 481be32 on liubao68:rg into a999de1 on ServiceComb:master.

if (VERSION_V3.equals(CURRENT_VERSION)) {
REGISTRY_VERSION = "3.0.0"; // old is strange
} else {
REGISTRY_VERSION = "0.4.0";
Copy link
Member

@WillemJiang WillemJiang Nov 20, 2017

Choose a reason for hiding this comment

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

I think we just need keep tracking the API version instead of the service center version.
For Java chassis, it only knows about the service center version.

Copy link
Contributor

Choose a reason for hiding this comment

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

use DefinitionConst.VERSION_RULE_ALL or use DefinitionConst.VERSION_RULE_LATEST

if SC can not support this, then it's SC's bug, must fix.
if SDK use a fixed version versionRule, then will bind to a special SC version, if SC upgraded, then SDK must update to new version.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am going to change this to latest according to wujimin's suggestion

Copy link
Contributor

@wujimin wujimin left a comment

Choose a reason for hiding this comment

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

ok, change it to latest

if (VERSION_V3.equals(CURRENT_VERSION)) {
REGISTRY_VERSION = "3.0.0"; // old is strange
} else {
REGISTRY_VERSION = "0.4.0";
Copy link
Contributor

Choose a reason for hiding this comment

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

use DefinitionConst.VERSION_RULE_ALL or use DefinitionConst.VERSION_RULE_LATEST

if SC can not support this, then it's SC's bug, must fix.
if SDK use a fixed version versionRule, then will bind to a special SC version, if SC upgraded, then SDK must update to new version.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 86.811% when pulling fc6ba84 on liubao68:rg into a999de1 on ServiceComb:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 86.817% when pulling 1c1f11e on liubao68:rg into a999de1 on ServiceComb:master.


public static final String REGISTRY_SERVICE_NAME = "SERVICECENTER";

public static final String REGISTRY_VERSION = "3.0.0";
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 a good practise to delete the public static constant.

@WillemJiang WillemJiang merged commit bbfa4aa into apache:master Nov 22, 2017
@liubao68 liubao68 deleted the rg branch January 5, 2018 07:35
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