When starting more than one JWP while the 1st JWP is updating the index, the other JWPs go into a write.lock loop
book
Article ID: 116291
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation Engine
Issue/Introduction
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 - Available