You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/08/03 08:30:36 UTC

[GitHub] [dubbo] saleson opened a new issue, #10402: 接口级服务发现 本地缓存provider信息的cache文件与内存中的provider信息会出现不一致

saleson opened a new issue, #10402:
URL: https://github.com/apache/dubbo/issues/10402

   AbstractRegistry.doSaveProperties()虽然采用文件锁、版本号以及重试等方式对竟争场景做了处理,但是在竟争文件锁失败创建重试任务时,没有sleep,仍会有概率出现上一个版本保存操作还没有释放锁,新版本重试次数达到上限导致新版本数据没有保存到cache文件的情况。
   
   ### Environment
   
   * Dubbo version: 3.05
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. 延长AbstractRegistry.doSaveProperties() 中文件锁的持有时间
   2. 在consumer中创建多个DubboService的Reference
   3. 短时间内同行时修改DubboService 的Provider侧信息
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   cache文件中的信息与consumer 应用内存中的Provider信息(AbstractRegistry.properties )一致
   
   ### Actual Behavior
   
   cache文件中的信息存在不致一、过时的情况,即比consumer 应用内存中的Provider信息(AbstractRegistry.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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] jk-tonycui commented on issue #10402: 接口级服务发现 本地缓存provider信息的cache文件与内存中的provider信息会出现不一致

Posted by GitBox <gi...@apache.org>.
jk-tonycui commented on issue #10402:
URL: https://github.com/apache/dubbo/issues/10402#issuecomment-1207224657

   已提交PR,请帮忙审核下哈


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] acmday commented on issue #10402: 接口级服务发现 本地缓存provider信息的cache文件与内存中的provider信息会出现不一致

Posted by GitBox <gi...@apache.org>.
acmday commented on issue #10402:
URL: https://github.com/apache/dubbo/issues/10402#issuecomment-1205951725

   Please assign this issue to me 


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #10402: 接口级服务发现 本地缓存provider信息的cache文件与内存中的provider信息会出现不一致

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #10402: 接口级服务发现 本地缓存provider信息的cache文件与内存中的provider信息会出现不一致
URL: https://github.com/apache/dubbo/issues/10402


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #10402: 接口级服务发现 本地缓存provider信息的cache文件与内存中的provider信息会出现不一致

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #10402:
URL: https://github.com/apache/dubbo/issues/10402#issuecomment-1204710918

   可以提个PR看怎么修复下


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org