How to configure JDG for indexing and queries

Solution Verified - Updated -


  • What need to be configured if I want to use Indexing and Queries with JDG in client/server mode?
  • If I run queries from a HotRod standalone client I see different results if the query is loadbalanced and hit different nodes
  • I have a two node cluster and a HotRod client which add content to the cache, but if I run a query directly afterwards I did not see this added content
  • Configured clustered caches (distributed or replicate) does not share or replicate the index correct, what is wrong with the configuration?
  • How to configure indexing for datagrid queries correctly if the caches are clustered?
  • There are errors within the logfiles if the distributed-cache is in mode=ASYNC, what is the reason?
ERROR [] (Hibernate Search sync consumer thread for index HSEARCH000058: HSEARCH000117: IOException on the IndexWriter: Read past EOF
        at org.infinispan.lucene.impl.SlicedBufferIndexInput.readByte(
        at org.apache.lucene.codecs.CodecUtil.checkHeader(
        at org.apache.lucene.codecs.CodecUtil.checkIndexHeader(
        at org.apache.lucene.codecs.lucene50.Lucene50PostingsReader.<init>(
        at org.apache.lucene.codecs.lucene50.Lucene50PostingsFormat.fieldsProducer(
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(
        at org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(
        at org.apache.lucene.index.SegmentCoreReaders.<init>(
        at org.apache.lucene.index.SegmentReader.<init>(
        at org.apache.lucene.index.ReadersAndUpdates.getReader(
        at org.apache.lucene.index.BufferedUpdatesStream$SegmentState.<init>(
        at org.apache.lucene.index.BufferedUpdatesStream.openSegmentStates(
        at org.apache.lucene.index.BufferedUpdatesStream.applyDeletesAndUpdates(
        at org.apache.lucene.index.IndexWriter.applyAllDeletesAndUpdates(
        at org.apache.lucene.index.IndexWriter.maybeApplyDeletes(
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(
        at org.apache.lucene.index.IndexWriter.commitInternal(
        at org.apache.lucene.index.IndexWriter.commit(


  • Red Hat JBoss Data Grid (JDG)
    • 6.x
    • 7.0.x

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content