You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jagmohan Singh (JIRA)" <ji...@apache.org> on 2016/10/28 19:39:58 UTC

[jira] [Created] (LUCENE-7527) Facing unsafe memory access operation error while calling searcherManager.maybeReopen()

Jagmohan Singh created LUCENE-7527:
--------------------------------------

             Summary: Facing unsafe memory access operation error while calling searcherManager.maybeReopen()
                 Key: LUCENE-7527
                 URL: https://issues.apache.org/jira/browse/LUCENE-7527
             Project: Lucene - Core
          Issue Type: Bug
          Components: core/search
    Affects Versions: 3.5
            Reporter: Jagmohan Singh


We are getting below error while calling searcherManager.maybeReopen() method. We are using MMAP to read NFS index directory mounted against 3 servers. We have a different process to update the indices and have 3 processes to read from the index. What we believe it when we face this error in one of the readers is due to heavy writes int he indices which are happening at that time and MMap implementation is not able to coop with it..

Caused by: java.lang.InternalError: a fault occurred in a recent unsafe memory access operation in compiled Java code
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.lucene.store.MMapDirectory.cleanMapping(MMapDirectory.java:158)
        at org.apache.lucene.store.MMapDirectory$MMapIndexInput.close(MMapDirectory.java:389)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:690)
        at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:593)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:359)
        at org.apache.lucene.index.SegmentInfos.readCurrentVersion(SegmentInfos.java:480)
        at org.apache.lucene.index.DirectoryReader.isCurrent(DirectoryReader.java:901)
        at org.apache.lucene.index.DirectoryReader.doOpenNoWriter(DirectoryReader.java:471)
        at org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:450)
        at org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:391)
        at org.apache.lucene.index.IndexReader.openIfChanged(IndexReader.java:497)
        at org.apache.lucene.search.SearcherManager.maybeReopen(SearcherManager.java:162)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org