You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/08/11 10:53:26 UTC
svn commit: r1617224 -
/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
Author: mikemccand
Date: Mon Aug 11 08:53:26 2014
New Revision: 1617224
URL: http://svn.apache.org/r1617224
Log:
throw ACE not NPE
Modified:
lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java?rev=1617224&r1=1617223&r2=1617224&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterPerThreadPool.java Mon Aug 11 08:53:26 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