github-api icon indicating copy to clipboard operation
github-api copied to clipboard

GitHubSanityCachedValue can block whole application

Open alexec opened this issue 4 weeks ago • 0 comments

The GitHubSanityCachedValue class contains a single shaled lock. This means that client to this class can be blocked by another user of the function.

Instead, it might be better to use a read/write lock.

https://github.com/hub4j/github-api/blob/9e09d67fbb35808abc0782e7d0cbf4b6e64a94de/src/main/java/org/kohsuke/github/GitHubSanityCachedValue.java#L11

alexec avatar Dec 04 '25 16:12 alexec