-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Conversation
…ies to control whether load snaoshot content on startup in CacheData
ce94aa5
to
8294673
Compare
@@ -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 |
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.
I don't think this change is necessary
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.
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.
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