org.apache.lucene.store.AlreadyClosedException: this Directory is closed

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Solr - User - stress testing Solr 4.x
    via by Unknown author,
  • Re: stress testing Solr 4.x
    via by Alain Rogister,
  • Re: stress testing Solr 4.x
    via by Alain Rogister,
  • We sometimes see a node not responding to GUI requests. It then generates the stack trace below. It does respond to search requests. {code} 2012-12-05 15:53:24,329 ERROR [solr.core.SolrCore] - [http-8080-exec-7] - : org.apache.solr.common.SolrException: Error handling 'status' action at org.apache.solr.handler.admin.CoreAdminHandler.handleStatusAction(CoreAdminHandler.java:725) at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:158) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:144) at org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:372) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:744) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.solr.common.SolrException: java.util.concurrent.RejectedExecutionException at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1674) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1330) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1265) at org.apache.solr.handler.admin.CoreAdminHandler.getCoreStatus(CoreAdminHandler.java:997) at org.apache.solr.handler.admin.CoreAdminHandler.handleStatusAction(CoreAdminHandler.java:711) ... 18 more Caused by: java.util.concurrent.RejectedExecutionException at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1768) at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:767) at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:658) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:92) at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:603) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1605) ... 22 more {code}
    via by Markus Jelsma,
    • org.apache.lucene.store.AlreadyClosedException: this Directory is closed at org.apache.lucene.store.Directory.ensureOpen(Directory.java:255) at org.apache.lucene.store.FSDirectory.fileExists(FSDirectory.java:548) at org.apache.lucene.index.SegmentInfo.addIfExists(SegmentInfo.java:574) at org.apache.lucene.index.SegmentInfo.files(SegmentInfo.java:600) at org.apache.lucene.index.SegmentInfos.files(SegmentInfos.java:803) at org.apache.lucene.index.IndexFileDeleter.incRef(IndexFileDeleter.java:458) at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:5576) at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:4160) at org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:2260) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2204) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:2168) at com.jaeksoft.searchlib.index.WriterLocal.close(WriterLocal.java:94) at com.jaeksoft.searchlib.index.WriterLocal.optimizeNoLock(WriterLocal.java:321) at com.jaeksoft.searchlib.index.WriterLocal.optimize(WriterLocal.java:329) at com.jaeksoft.searchlib.index.IndexSingle.optimize(IndexSingle.java:105) at com.jaeksoft.searchlib.Client.optimize(Client.java:218) at com.jaeksoft.searchlib.scheduler.task.TaskOptimizeIndex.execute(TaskOptimizeIndex.java:61) at com.jaeksoft.searchlib.scheduler.TaskItem.run(TaskItem.java:89) at com.jaeksoft.searchlib.scheduler.TaskManager.execute(TaskManager.java:221) at org.quartz.core.JobRunShell.run(JobRunShell.java:216) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
    No Bugmate found.