fsx379 commented on issue #9660: URL: https://github.com/apache/dubbo/issues/9660#issuecomment-1033693819
> 的确存在这个问题。 > > 我的另一种想法是在异步存储到文件的时候,加锁(比如显示声明一个`Object obj`对象,然后`sync(obj))`,然后将`properties`的数据读到另一个容器中,再将此容器的数据写入到文件中。 > > 这个思路来源于`MetaCacheManager#CacheRefreshTask#run`,这里可以看到`cache`就相当于前面提到的`properties`,是一个内存随时变更的容器。 现在代码中的锁是 properties 自身的,该起来比较费劲,是要重新实现一个 properties 类? 求MetaCacheManager#CacheRefreshTask#run 出处,学习下..... -- 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]
