We're updating the issue view to help you get more done. 

LockObtainFailedException releases writer lock

Description

If Workspace.getIndexWriter(...) method is called and a LockObtainFailedException is thrown, the method getIndexWriter catch the LockObtainFailedException and returns null. This causes NPE in PerDPQueueProcessor.run() method (delegates expect that writer is not null) and writerLock is released by calling workspace.forceLockRelease() method because of tw.getCause() returns NullPointerException instead of expected LockObtainFailedException.

Environment

None

Status

Assignee

Unassigned

Reporter

Michal Zaborec

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Time Tracking

1h

Affects versions

3.4.2.Final

Priority

Critical