Highlighted
Micro Focus Expert
Micro Focus Expert
160 views

UCMDB Tip : In uCMDB Browser customer not able to search the newly created CI in ucmdb.

 Why in uCMDB browser customer not able to search the newly created CI in uCMDB and we see the below error ?
org.apache.solr.client.solrj.SolrServerException: org.apache.solr.client.solrj.SolrServerException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@..\search\solr\customer1\data\index\write.lock


Caused by: org.apache.solr.client.solrj.SolrServerException: org.apache.solr.client.solrj.SolrServerException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@..\search\solr\customer1\data\index\write.lock
at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:153)
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:69)
at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:54)
at com.hp.ucmdb.search.connection.SolrSearchEngine.add(SolrSearchEngine.java:99)
... 30 more
Caused by: org.apache.solr.client.solrj.SolrServerException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@..\search\solr\customer1\data\index\write.lock
at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:142)
... 34 more
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@..\search\solr\customer1\data\index\write.lock

 


Solution : Solr search is not able to acquire the lock and hence index is not created which makes the search failing in the browser. Increaseing the writeLockTimeout in solrconfig.xml will help to resolve this issue.


The below procedure will help to increase the writeLockTimeout. We can increase this value to 5000 and it's default value is 1000.

 

1. backup the jar search-core.jar from \UCMDBServer\lib\ folder
2. unzip search-core.jar with winrar and edit file \search-core\search\solr\customer\conf\solrconfig.xml
3. set writeLockTimeout and save changes and zip the file again as jar file.
4. change writeLockTimeout from C:\hp\UCMDB\UCMDBServer\search\solr\customer1\conf\solrconfig.xml (also for customer customer100001 if it exists)
5. restart uCMDB.

 

 The above procedure will not rever the change even after we restart the ucmdb.

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.