Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lock acquisition log message for RedisLockRegistry #8804

Merged
merged 1 commit into from
Dec 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
* @author Christian Tzolov
* @author Eddie Cho
* @author Myeonghyeon Lee
* @author Roman Zabaluev
*
* @since 4.0
*
Expand Down Expand Up @@ -432,11 +433,14 @@ public final boolean tryLock(long time, TimeUnit unit) throws InterruptedExcepti
}

private boolean tryRedisLock(long time) throws ExecutionException, InterruptedException {
final boolean result = tryRedisLockInner(time);
if (result) {
final boolean acquired = tryRedisLockInner(time);
if (acquired) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Acquired lock; " + this);
}
this.lockedAt = System.currentTimeMillis();
}
return result;
return acquired;
}

protected final Boolean obtainLock() {
Expand Down