lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1617228 - in /lucene/dev/trunk: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
Date Mon, 11 Aug 2014 09:04:40 GMT
Author: mikemccand
Date: Mon Aug 11 09:04:40 2014
New Revision: 1617228

URL: http://svn.apache.org/r1617228
Log:
throw ACE not NPE

Modified:
    lucene/dev/trunk/   (props changed)
    lucene/dev/trunk/lucene/   (props changed)
    lucene/dev/trunk/lucene/core/   (props changed)
    lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java

Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java?rev=1617228&r1=1617227&r2=1617228&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
(original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
Mon Aug 11 09:04:40 2014
@@ -18,6 +18,7 @@ package org.apache.lucene.index;
 
 import java.util.concurrent.locks.ReentrantLock;
 
+import org.apache.lucene.store.AlreadyClosedException;
 import org.apache.lucene.util.ThreadInterruptedException;
 
 /**
@@ -190,7 +191,7 @@ final class DocumentsWriterPerThreadPool
       }
       // we are closed: unlock since the threadstate is not active anymore
       assert assertUnreleasedThreadStatesInactive();
-      return null;
+      throw new AlreadyClosedException("this IndexWriter is closed");
     } finally {
       if (unlock) {
         // in any case make sure we unlock if we fail 



Mime
View raw message