apache / apache/dubbo

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

Open
#11,831 3 comments 0 reactions 0 assignees View on GitHub
type/discussion
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

- [x] I have searched the [issues](https://github.com/apache/dubbo/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.

Contributor guide

Open the contributing guide

Research direction

Start by locating Dubbo's cache-properties persistence code and the use of Java NIO file locks. Read the surrounding concurrency and disk-saving logic, then compare the lock's role with the alternatives discussed in the issue; done means documenting a clear rationale for this design.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.