Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7527

Facing unsafe memory access operation error while calling searcherManager.maybeReopen()

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5
    • None
    • core/search
    • None
    • New

    Description

      We are getting below error while calling searcherManager.maybeReopen() method. We are using MMAP implementation to read NFS index directory mounted against 3 servers. We have a different process to update the indices and 3 other processes to read from the same index. What we believe is that this issue occurs when we call maybeReopen() method during heavy writes to the indices 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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jagsisingh Jagmohan Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: