Problems
- Currently, a lock is removed after a certain threshold of time, so automatically remove dead locks. But if a session is taking longer than the timeout, it will also remove that active lock
- Locking is relatively slow under heavy multithreaded work
Solution for 1
- The timeout problem could be fixed if the active lock periodically (less than timeout duration) rewrites its lock with a newer timestamp, so no other process will remove it. The difficulty is to how this should work, having an extra thread or process doing the refresh work is an option
Solution for 1 and 2
Using a different locking mechanism could fix both problems at once
Reactions are currently unavailable
Problems
Solution for 1
Solution for 1 and 2
Using a different locking mechanism could fix both problems at once