Michael McCandless 10 年之前
父节点
当前提交
c9afeccac4
共有 1 个文件被更改,包括 14 次插入1 次删除
  1. 14 1
      src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java

+ 14 - 1
src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java

@@ -195,12 +195,25 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
         }
     }
 
-    @TestLogging("test.engine:TRACE,index.engine:TRACE,test.engine.lucene:INFO,index.engine.lucene:INFO")
     public void testOldIndexes() throws Exception {
         setupCluster();
 
         Collections.shuffle(indexes, getRandom());
         for (String index : indexes) {
+            if (index.equals("index-0.90.13.zip") == false) {
+                long startTime = System.currentTimeMillis();
+                logger.info("--> Testing old index " + index);
+                assertOldIndexWorks(index);
+                logger.info("--> Done testing " + index + ", took " + ((System.currentTimeMillis() - startTime) / 1000.0) + " seconds");
+            }
+        }
+    }
+
+    @TestLogging("test.engine:TRACE,index.engine:TRACE,test.engine.lucene:TRACE,index.engine.lucene:TRACE")
+    public void testShitSlowIndex() throws Exception {
+        setupCluster();
+        for (int i = 0; i < 5; i++) {
+            String index = "index-0.90.13.zip";
             long startTime = System.currentTimeMillis();
             logger.info("--> Testing old index " + index);
             assertOldIndexWorks(index);