Unable to initialize IndexManager with HSEARCH000103 error if RHDG cache is stared

Solution Verified - Updated -

Issue

  • If the RHDG server is stared one indexed cache fail to start with the following message
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.datagrid-infinispan.clustered.INDEXEDCACHE org.jboss.msc.service.StartException in service jboss.datagrid-infinispan.clustered.INDEXEDCACHE: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'INDEXEDCACHE_protobuf'
        at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:291)
        at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:544)
        at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManagers(IndexManagerHolder.java:513
        ... 3 more
Caused by: org.hibernate.search.exception.SearchException: Unable to open Lucene IndexReader for IndexManager INDEXEDCACHE_protobuf
        at org.hibernate.search.indexes.impl.SharingBufferReaderProvider.createReader(SharingBufferReaderProvider.java:113)
           at org.hibernate.search.indexes.impl.SharingBufferReaderProvider.createReader(SharingBufferReaderProvider.java:113)
        at org.hibernate.search.indexes.impl.SharingBufferReaderProvider.initialize(SharingBufferReaderProvider.java:91)
        at org.hibernate.search.indexes.impl.PropertiesParseHelper.createDirectoryBasedReaderProvider(PropertiesParseHelper.java:175)
        at org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.createIndexReader(DirectoryBasedIndexManager.java:213)
        at org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:87)
        at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:287)
        ... 28 more
Caused by: org.apache.lucene.index.CorruptIndexException: file mismatch, expected id=6iwsxyf797h56ecbm2zai0sqb, got=8cplb248hv2yq6ph6or0fqe5x (resource=BufferedChecksumIndexInput(_l4mq.si))
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeaderID(CodecUtil.java:267)
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(CodecUtil.java:256)
   reateReader(SharingBufferReaderProvider.java:108)
        ... 33 more
        Suppressed: org.apache.lucene.index.CorruptIndexException: checksum passed (207ea400). possibly transient resource issue, or a Lucene or JVM bug (resource=BufferedChecksumIndexInput(_l4mq.si))
                at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:379)
                at org.apache.lucene.codecs.lucene50.Lucene50SegmentInfoFormat.read(Lucene50SegmentInfoFormat.java:117)
                ... 42 more
  • When using JBoss Data Grid embedded in JBoss EAP with Lucene index cache, unable to initialize IndexManager Hibernate error occours:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 81) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./acm-search-engine: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./acm-search-engine: org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.example'
    ...
Caused by: org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.example'
    ...
Caused by: org.hibernate.search.exception.SearchException: Unable to open Lucene IndexReader for IndexManager com.example
    ...
Caused by: java.io.IOException: Read past EOF

Environment

  • Red Hat Data Grid (RHDG)
    • 6, 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In