mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
fe58408a2e
commit
b1d8a4b2e3
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ public class FileLockFactory {
|
|||
String lockPath = LOCK_MAP.remove(lock);
|
||||
if (lockPath == null) { throw new LockException("Cannot release unobtained lock"); }
|
||||
lock.release();
|
||||
lock.channel().close();
|
||||
Boolean removed = LOCK_HELD.remove(lockPath);
|
||||
if (removed == false) { throw new LockException("Lock path was not marked as held: " + lockPath); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue