Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
locks.remove(taskId); lockAndOwner.lock.release(); log.debug("{} Released state dir lock for task {}", logPrefix(), taskId); final FileChannel fileChannel = channels.remove(taskId); if (fileChannel != null) { fileChannel.close();
If lockAndOwner.lock.release() throws IOE, the closing of the FileChannel would be skipped.
Edit (with discussion on PR #5574):
The removal of taskId from locks should be done after all work has been done in releasing the lock.
Attachments
Attachments
Issue Links
- links to