lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1237682 - in /lucene/dev/branches/lucene3661/lucene/src: java/org/apache/lucene/codecs/lucene40/ test-framework/java/org/apache/lucene/codecs/preflexrw/
Date Mon, 30 Jan 2012 14:36:39 GMT
Author: rmuir
Date: Mon Jan 30 14:36:38 2012
New Revision: 1237682

URL: http://svn.apache.org/viewvc?rev=1237682&view=rev
Log:
consistent error messages for size mismatch

Modified:
    lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java
    lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java
    lucene/dev/branches/lucene3661/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWTermVectorsWriter.java

Modified: lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java?rev=1237682&r1=1237681&r2=1237682&view=diff
==============================================================================
--- lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java
(original)
+++ lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsWriter.java
Mon Jan 30 14:36:38 2012
@@ -211,7 +211,7 @@ public final class Lucene40StoredFieldsW
       // throw an exception to prevent the corruption from
       // entering the index.  See LUCENE-1282 for
       // details.
-      throw new RuntimeException("mergeFields produced an invalid result: docCount is " +
numDocs + " but fdx file size is " + indexStream.getFilePointer() + " file=" + indexStream.toString()
+ "; now aborting this merge to prevent index corruption");
+      throw new RuntimeException("fdx size mismatch: docCount is " + numDocs + " but fdx
file size is " + indexStream.getFilePointer() + " file=" + indexStream.toString() + "; now
aborting this merge to prevent index corruption");
   }
   
   @Override

Modified: lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java?rev=1237682&r1=1237681&r2=1237682&view=diff
==============================================================================
--- lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java
(original)
+++ lucene/dev/branches/lucene3661/lucene/src/java/org/apache/lucene/codecs/lucene40/Lucene40TermVectorsWriter.java
Mon Jan 30 14:36:38 2012
@@ -355,7 +355,7 @@ public final class Lucene40TermVectorsWr
       // throw an exception to prevent the corruption from
       // entering the index.  See LUCENE-1282 for
       // details.
-      throw new RuntimeException("mergeVectors produced an invalid result: mergedDocs is
" + numDocs + " but tvx size is " + tvx.getFilePointer() + " file=" + tvx.toString() + ";
now aborting this merge to prevent index corruption");
+      throw new RuntimeException("tvx size mismatch: mergedDocs is " + numDocs + " but tvx
size is " + tvx.getFilePointer() + " file=" + tvx.toString() + "; now aborting this merge
to prevent index corruption");
   }
 
   /** Close all streams. */

Modified: lucene/dev/branches/lucene3661/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWTermVectorsWriter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3661/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWTermVectorsWriter.java?rev=1237682&r1=1237681&r2=1237682&view=diff
==============================================================================
--- lucene/dev/branches/lucene3661/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWTermVectorsWriter.java
(original)
+++ lucene/dev/branches/lucene3661/lucene/src/test-framework/java/org/apache/lucene/codecs/preflexrw/PreFlexRWTermVectorsWriter.java
Mon Jan 30 14:36:38 2012
@@ -202,7 +202,7 @@ public final class PreFlexRWTermVectorsW
       // throw an exception to prevent the corruption from
       // entering the index.  See LUCENE-1282 for
       // details.
-      throw new RuntimeException("mergeVectors produced an invalid result: mergedDocs is
" + numDocs + " but tvx size is " + tvx.getFilePointer() + " file=" + tvx.toString() + ";
now aborting this merge to prevent index corruption");
+      throw new RuntimeException("tvx size mismatch: mergedDocs is " + numDocs + " but tvx
size is " + tvx.getFilePointer() + " file=" + tvx.toString() + "; now aborting this merge
to prevent index corruption");
   }
 
   /** Close all streams. */



Mime
View raw message