Skip to content
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

issue#8163 fix multi instance share the same local snapshot #8202

Merged
merged 1 commit into from
Apr 24, 2022

Conversation

shiyiyue1102
Copy link
Collaborator

@shiyiyue1102 shiyiyue1102 commented Apr 19, 2022

fix bug isuue #8163

add nacos.cache.data.init.snapshot properties ,to determine if load snapshot content on startup which will result in a default notification on initialing ,default is true

@CLAassistant
Copy link

CLAassistant commented Apr 19, 2022

CLA assistant check
All committers have signed the CLA.

@shiyiyue1102 shiyiyue1102 changed the title Develop issue#8163 fix bug isuue 8163,fix multi instance share the same local snapshot Apr 19, 2022
@shiyiyue1102 shiyiyue1102 changed the title fix bug isuue 8163,fix multi instance share the same local snapshot fix multi instance share the same local snapshot Apr 19, 2022
…ies to control whether load snaoshot content on startup in CacheData
@shiyiyue1102 shiyiyue1102 changed the title fix multi instance share the same local snapshot issue#8163 fix multi instance share the same local snapshot Apr 20, 2022
@@ -132,28 +132,28 @@ public ServerListManager(List<String> fixed, String namespace) {
for (String serverAddr : fixed) {
String[] serverAddrArr = InternetAddressUtil.splitIPPortStr(serverAddr);
if (serverAddrArr.length == 1) {
serverAddrs.add(serverAddrArr[0] + InternetAddressUtil.IP_PORT_SPLITER + ParamUtil.getDefaultServerPort());
serverAddrs
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this change is necessary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the modification on ServerListManager has several purposes:
1.optimize the naming rule of server name when the serverlistmanager is using endpoint , port,contentpath ,cluster name which construct the whole address server.
2.support endpoint query string parameter after the address server url to satisfy more usage scenarios , for example, this query string is essential in alibaba internal scene when using address server.
3.support user defined server name to serverlistmanager and client worker , to make our log print more graceful in multi instances scenarios.

@KomachiSion KomachiSion merged commit 2e9c09d into alibaba:develop Apr 24, 2022
@KomachiSion KomachiSion added area/Client Related to Nacos Client SDK kind/bug Category issues or prs related to bug. labels Apr 24, 2022
@KomachiSion KomachiSion added this to the 2.1.0 milestone Apr 24, 2022
@shiyiyue1102 shiyiyue1102 deleted the develop-issue#8163 branch April 24, 2022 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/Client Related to Nacos Client SDK kind/bug Category issues or prs related to bug.
Projects
None yet
4 participants