#4595·redisson

Questions about fairLock

Author: wangsw666Created Oct 12, 2022Updated Aug 4, 2026
Labelsbug
  1. Sets the waiting time for acquiring a fair lock : Long.MaxValue
  2. When the server is down, the lock will be automatically unlocked after 30s. However, the expired value of the thread in the waiting queue is very long, the server restarts, and when the lock is acquired again, the thread will queue at the end of the queue, but the lock is not held by a thread at this time, so the business program cannot be executed.

Hope for a solution