Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17285

Lucene error messages during tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • 4.2.0.Alpha2
    • webservices
    • None

      The following errors appear in the build logs:

      Exception in thread "Lucene Merge Thread #2" org.apache.lucene.index.MergePolicy$MergeException: org.apache.lucene.store.AlreadyClosedException: this Directory is closed
      	at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:517)
      	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:482)
      Caused by: org.apache.lucene.store.AlreadyClosedException: this Directory is closed
      	at org.apache.lucene.store.Directory.ensureOpen(Directory.java:288)
      	at org.apache.lucene.store.RAMDirectory.listAll(RAMDirectory.java:94)
      	at org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:335)
      	at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:3954)
      	at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:388)
      	at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:456)
      

      but the tests pass.

      Maybe using Lucene's SearcherManager (as shown on http://blog.mikemccandless.com/2011/09/lucenes-searchermanager-simplifies.html) could fix the problem ?

            xcoulon@redhat.com Xavier Coulon
            xcoulon@redhat.com Xavier Coulon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: