Why dubbo does choose to create a lock file and use nio file lock

goqiplq2  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(64)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ask your question here

Why dubbo does choose to create a lock file and use nio file lock to control the concurrent problem during saving cache properties to disk instead of other locks? Thanks.

nxagd54h

nxagd54h1#

When there are multiple Dubbo instances

jgzswidk

jgzswidk2#

When there are multiple Dubbo instances

So could we use filelock on cache file directly? Could creating an additional lock file avoid some potential problems? Thanks a lot.

o7jaxewo

o7jaxewo3#

Great, can you describe your approach, I suggest you make a PR.

相关问题