lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1211398 - /lucene/dev/branches/lucene3622/lucene/src/test/org/apache/lucene/index/values/TestTypePromotion.java
Date Wed, 07 Dec 2011 11:57:00 GMT
Author: rmuir
Date: Wed Dec  7 11:57:00 2011
New Revision: 1211398

URL: http://svn.apache.org/viewvc?rev=1211398&view=rev
Log:
LUCENE-3623: don't use SlowMultiReaderWrapper for SORTED_BYTES tests

Modified:
    lucene/dev/branches/lucene3622/lucene/src/test/org/apache/lucene/index/values/TestTypePromotion.java

Modified: lucene/dev/branches/lucene3622/lucene/src/test/org/apache/lucene/index/values/TestTypePromotion.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene3622/lucene/src/test/org/apache/lucene/index/values/TestTypePromotion.java?rev=1211398&r1=1211397&r2=1211398&view=diff
==============================================================================
--- lucene/dev/branches/lucene3622/lucene/src/test/org/apache/lucene/index/values/TestTypePromotion.java
(original)
+++ lucene/dev/branches/lucene3622/lucene/src/test/org/apache/lucene/index/values/TestTypePromotion.java
Wed Dec  7 11:57:00 2011
@@ -103,7 +103,9 @@ public class TestTypePromotion extends L
       } else {
         // do a real merge here
         IndexReader open = IndexReader.open(dir_2);
-        writer.addIndexes(random.nextBoolean() ? new SlowMultiReaderWrapper(open) : open);
+        // we cannot use SlowMR for sorted bytes, because it returns a null sortedsource
+        boolean useSlowMRWrapper = types != SORTED_BYTES && random.nextBoolean();
+        writer.addIndexes(useSlowMRWrapper ? new SlowMultiReaderWrapper(open) : open);
         open.close();
       }
       dir_2.close();



Mime
View raw message