Caffeine: CPU load 100%,dead lock

Created on 30 May 2018  路  5Comments  路  Source: ben-manes/caffeine

image
image
i found dead lock here, do you have any option for me? version is 2.3.0

All 5 comments

looks like a non-issue in the latest Caffeine, I only see usages of yield in tests, @520CHINA please update, latest version is 2.6.2.

Yes, please upgrade.

The issue is that the executor can have all its threads busy and the maintenance task is scheduled on its work queue. This means that a back off won鈥檛 help, since there are no free threads to run it. By instead taking the lock and doing the work as a last resort, it fixes the problem and flushes the write buffer. It also increases write throughput by reducing context switches, more aggressively flushes the write buffer, and does not busy wait.

This was fixed in 2.3.1 (#90) so you can do a patch update if necessary. Since I do try to strictly abide by semver, a full upgrade would be ideal for any other bug fixes.

Sorry for any trouble caused, but thanks for checking in with us about the issue.

Was this page helpful?
0 / 5 - 0 ratings