Index content for document and searches job fails with 'SRCH-01003: Error occurred while indexing search contents' and 'Lock obtain timed out: SimpleFSLock@D:\searchindex\clarity\nspider\write.lock' errors in the bg-ca logs.
Sample Stack trace
"ERROR 2021-12-06 23:38:16,136 [http-nio-8082-exec-30] xbl.XOGCustomObjectInstanceHandler (clarity:xogadmin:75288047__298B3211-02DF-4F38-8D5B-F8C4FE867A5E:XOG::customObjectInstance::write) exception XOGging object
com.niku.union.odf.exception.ODFException: Error writing file searchindex\clarity\Test.csv to file system"
"Caused by: com.ca.clarity.union.search.engine.SearchException: SRCH-02001: Error while retrieving search contents. Contact your system administrator.
at com.niku.search.engine.lucene.LuceneSearchEngine.addFileToIndex(LuceneSearchEngine.java:123)
at com.niku.odf.object.ODFAbstractObjectImpl.processNewAttachment(ODFAbstractObjectImpl.java:5092)
... 74 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@D:\searchindex\clarity\nspider\write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:85)"
Release: All Supported Clarity Release
Component: PPMSTU
The cause can be the lucene engine used for searching is corrupted and you may need to perform additional step to fix it
If the above steps dont help then you need to perform below
***IMPORTANT: Please perform the activity after-hours, as it is very resource-intensive and could impact performance and ensure to stop all the clarity services before performing the steps. For very large filestores, please don't run the command's without contacting Broadcom Support***