funky-eyes commented on issue #6223:
URL: 
https://github.com/apache/incubator-seata/issues/6223#issuecomment-1870895843

   > 是的,spring 
boot没有,springcloud有,我说的是FileConfiguration动态轮询的那个操作,可以拉取到最新的配置,但现在被关闭了. Yes, 
spring boot does not have it. I am talking about the operation of dynamic 
polling of FileConfiguration. It can pull the latest configuration, but it is 
closed now.
   
   
那个问题还是因为无法感知spring容器已经关闭或者热更新下容器刷新了,导致那个定时任务一直在跑,一直抛出异常,实际上可以再spring下监听ContextRefreshedEvent或ContextClosedEvent去做到关闭这个轮询的线程。当初认为seata本身就支持三方的配置中心和自定义扩展的配置中心,所以不需要搞的太复杂去对接这些事件
   The problem is still because I can't perceive that the spring container has 
been closed or the container has been refreshed under hotfix, resulting in the 
scheduled task running all the time and throwing exceptions. In fact, I can 
listen to ContextRefreshedEvent or ContextClosedEvent under spring to close the 
Polling thread. At first, I thought that seata itself supports the three-party 
configuration center and the customized extended configuration center, so there 
is no need to make it too complicated to connect these events


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to