org.apache.lucene.store.NoSuchDirectoryException: directory '/xxx/xxx' does not exist in EPP

Solution Unverified - Updated -

Issue

  • This error is occurring on one of our production nodes ever few seconds:
ERROR [exo.jcr.component.core.MultiIndex] (MultiIndex Flush Timer) Unable to commit volatile index
org.apache.lucene.store.NoSuchDirectoryException: directory '/jas/idxshare/gatein/jcr/lucene/portal-system_commdash/_7b' does not exist
    at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:516)
    at org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:543)
    at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:564)
    at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:517)
    at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:306)
    at org.apache.lucene.index.SegmentInfos.readCurrentVersion(SegmentInfos.java:408)
    at org.apache.lucene.index.DirectoryReader.isCurrent(DirectoryReader.java:800)
    at org.apache.lucene.index.FilterIndexReader.isCurrent(FilterIndexReader.java:241)
    at org.exoplatform.services.jcr.impl.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:260)
    at org.exoplatform.services.jcr.impl.core.query.lucene.PersistentIndex.getNumDocuments(PersistentIndex.java:176)
    at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex$8.run(MultiIndex.java:1571)
    at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex$8.run(MultiIndex.java:1549)
    at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedExceptionAction(SecurityHelper.java:309)
    at org.exoplatform.commons.utils.SecurityHelper.doPrivilegedIOExceptionAction(SecurityHelper.java:56)
    at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex.flush(MultiIndex.java:1548)
    at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex.checkFlush(MultiIndex.java:2098)
    at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex.access$2400(MultiIndex.java:101)
    at org.exoplatform.services.jcr.impl.core.query.lucene.MultiIndex$9.run(MultiIndex.java:1683)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
  • It only occurs when I start editing something in the first node.

Environment

  • JBoss Enterprise Portal Platform
    • 5.2.0
  • cluster

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