I have a java app that has multiple instances over a local network. It uses Redis Redlock to manage integrity of a shared database. Issue here is this java app is still highly unstable so that it crash lot of times. When one instance crashed and it held the lock at the time of crash all other instance get stuck. My question is can I release a lock from a Redis CLI when an instance of Java app which hold the lock crashed.
With the CLI I could remove lock from Redis server with command
DEL <lock name>
When doing so the waiting thread could acquire the lock. I don't know this is the right way. But it works.