Issue Description
Type: bug report
Describe what happened (or what feature you want)
when com.alibaba.csp.sentinel.datasource.nacos.NacosDataSource init, it will create a new ConfigService and cached it.
But when NacosDataSource close, the ConfigService is not be shutdown so that the connections can threads may be not closed.
Once com.alibaba.csp.sentinel.datasource.nacos.NacosDataSource rebuild, the connection and thread will leak.
Describe what you expected to happen
shutdown ConfigService when com.alibaba.csp.sentinel.datasource.nacos.NacosDataSource close.
Anything else we need to know?
The other and recommended fixed way is re-use the ConfigService for all datasources. Now sentinel will create one connection to nacos for each rule.
In fact, multiple rule can be listened by one ConfigService.
Issue Description
Type: bug report
Describe what happened (or what feature you want)
when
com.alibaba.csp.sentinel.datasource.nacos.NacosDataSourceinit, it will create a newConfigServiceand cached it.But when NacosDataSource close, the
ConfigServiceis not be shutdown so that the connections can threads may be not closed.Once
com.alibaba.csp.sentinel.datasource.nacos.NacosDataSourcerebuild, the connection and thread will leak.Describe what you expected to happen
shutdown
ConfigServicewhencom.alibaba.csp.sentinel.datasource.nacos.NacosDataSourceclose.Anything else we need to know?
The other and recommended fixed way is re-use the
ConfigServicefor all datasources. Now sentinel will create one connection to nacos for each rule.In fact, multiple rule can be listened by one
ConfigService.