We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
环境信息: nacos服务端版本:2.0.3, 客户端使用:spring-cloud-starter-alibaba-nacos-discovery的2.2.5.RELEASE
现象:
通过源码启动nacos,并通过环境变量注入nacos.naming.client.expired.time设置为较长
注册临时服务,等服务上线后,停掉临时服务。在服务端进行检查时候,如图会检测客户端的过期时间,通过获取ClientConfig的实例得到该参数 但在ClientConfig代码中,初始化该对象时候调用了父类AbstractDynamicConfig的resetConfig()方法并通过子类的getConfigFromEnv()方法从环境变量中获取到了nacos.naming.client.expired.time的值并赋给clientExpiredTime,但子类ClientConfig初始化过程中又重置了clientExpiredTime为默认的3分钟。导致无论如何都无法通过环境变量设置该值
The text was updated successfully, but these errors were encountered:
@onewe will resolve it@
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
环境信息:
nacos服务端版本:2.0.3,
客户端使用:spring-cloud-starter-alibaba-nacos-discovery的2.2.5.RELEASE
现象:
通过源码启动nacos,并通过环境变量注入nacos.naming.client.expired.time设置为较长
注册临时服务,等服务上线后,停掉临时服务。在服务端进行检查时候,如图会检测客户端的过期时间,通过获取ClientConfig的实例得到该参数
但在ClientConfig代码中,初始化该对象时候调用了父类AbstractDynamicConfig的resetConfig()方法并通过子类的getConfigFromEnv()方法从环境变量中获取到了nacos.naming.client.expired.time的值并赋给clientExpiredTime,但子类ClientConfig初始化过程中又重置了clientExpiredTime为默认的3分钟。导致无论如何都无法通过环境变量设置该值
The text was updated successfully, but these errors were encountered: