-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
change cache dir with namespace #3533
Comments
looks good. And can you check for config module, it should have another cache dir. What's more, there may be some other dir is depend |
@i will solve it@ |
This is concerned with the unification of paths in naming module.
|
Is your feature request related to a problem? Please describe.
I want to change nacos cache dir. but if i special the property "com.alibaba.nacos.naming.cache.dir", the cache dir dismissed {namespce} path。
Describe the solution you'd like
I check the code in com.alibaba.nacos.client.naming.NacosNamingService ,seems cacheDir should mean nacos home 。see below。
it shold cacheDir = System.getProperty("com.alibaba.nacos.naming.cache.dir")+/naming/" + namespace;
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
the origin code is:
private void initCacheDir() {
cacheDir = System.getProperty("com.alibaba.nacos.naming.cache.dir");
if (StringUtils.isEmpty(cacheDir)) {
cacheDir = System.getProperty("user.home") + "/nacos/naming/" + namespace;
}
}
The text was updated successfully, but these errors were encountered: