BurningCN edited a comment on issue #9660:
URL: https://github.com/apache/dubbo/issues/9660#issuecomment-1033301598


   的确存在这个问题。
   
   我的另一种想法是在异步存储到文件的时候,加锁(比如显示声明一个`Object 
obj`对象,然后`sync(obj))`,然后将`properties`的数据读到另一个容器中,再将此容器的数据写入到文件中。
   
   
这个思路来源于`MetaCacheManager#CacheRefreshTask#run`,这里可以看到`cache`就相当于前面提到的`properties`,是一个内存随时变更的容器。


-- 
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