When starting more than one JWP while the 1st JWP is updating the index, the other JWPs go into a write.lock loop

Document ID : KB000116291
Last Modified Date : 28/09/2018
Show Technical Document Details
Issue:
When more than one JWP is started at a time and one of the JWPs is already updating the index the other JWPs loop with the following error message: 
U00045014 Exception 'java.lang.RuntimeException: "org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /opt/uc4tg/bin/indexCache-12.1/112/write.lock"' at 'com.automic.search.lucene.builder.IndexBuilderTransaction.createIndexWriterForClient():165'. 
java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock held by another program: /opt/uc4tg/bin/indexCache-12.1/112/write.lock 


As a result of this, the Lucene Index does not get updated and the search functionality of the AWI delivers incorrect result. 
Environment:
N/A
Cause:
This was an error in the code.
Resolution:
Update to a fixed version listed below or a newer version if available.

Component(s): AE Server
Automation Engine 12.1.3 – available
Automation Engine 12.2.1 - planned release date: 2018-10-23