Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C89617CF5 for ; Fri, 10 Apr 2015 20:10:55 +0000 (UTC) Received: (qmail 71696 invoked by uid 500); 10 Apr 2015 20:10:45 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 71687 invoked by uid 99); 10 Apr 2015 20:10:45 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Apr 2015 20:10:45 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id A4AA7AC00B4 for ; Fri, 10 Apr 2015 20:10:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1672749 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/index/CheckIndex.java Date: Fri, 10 Apr 2015 20:10:45 -0000 To: commits@lucene.apache.org From: mikemccand@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150410201045.A4AA7AC00B4@hades.apache.org> Author: mikemccand Date: Fri Apr 10 20:10:45 2015 New Revision: 1672749 URL: http://svn.apache.org/r1672749 Log: LUCENE-5879: turn off too-slow term range checking for now Modified: lucene/dev/branches/branch_5x/ (props changed) lucene/dev/branches/branch_5x/lucene/ (props changed) lucene/dev/branches/branch_5x/lucene/core/ (props changed) lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java?rev=1672749&r1=1672748&r2=1672749&view=diff ============================================================================== --- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java (original) +++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java Fri Apr 10 20:10:45 2015 @@ -947,6 +947,7 @@ public class CheckIndex implements Close if (isIntersect == false) { throw new RuntimeException("didn't see max term field=" + field + " term=" + maxTerm); } + //System.out.println(" terms=" + termCount); return termCount; } @@ -973,6 +974,7 @@ public class CheckIndex implements Close int cmp = term.compareTo(maxTerm); if (cmp == 0) { // Done! + //System.out.println(" terms=" + termCount); return termCount; } else if (cmp > 0) { throw new RuntimeException("didn't see end term field=" + field + " term=" + maxTerm); @@ -1007,7 +1009,8 @@ public class CheckIndex implements Close /** Test Terms.intersect on this range, and validates that it returns the same doc ids as using non-intersect TermsEnum. Returns true if * any fake terms were seen. */ private static boolean checkSingleTermRange(String field, int maxDoc, Terms terms, BytesRef minTerm, BytesRef maxTerm, FixedBitSet normalDocs, FixedBitSet intersectDocs) throws IOException { - // System.out.println(" check minTerm=" + minTerm + " maxTerm=" + maxTerm); + //System.out.println(" check minTerm=" + minTerm.utf8ToString() + " maxTerm=" + maxTerm.utf8ToString()); + assert minTerm.compareTo(maxTerm) <= 0; TermsEnum termsEnum = terms.iterator(); TermsEnum.SeekStatus status = termsEnum.seekCeil(minTerm); @@ -1028,6 +1031,7 @@ public class CheckIndex implements Close if (normalDocs.equals(intersectDocs) == false) { throw new RuntimeException("intersect visited different docs than straight terms enum: " + normalDocs.cardinality() + " for straight enum, vs " + intersectDocs.cardinality() + " for intersect, minTerm=" + minTerm + " maxTerm=" + maxTerm); } + //System.out.println(" docs=" + normalTermCount); //System.out.println(" " + intersectTermCount + " vs " + normalTermCount); return intersectTermCount != normalTermCount; } @@ -1087,6 +1091,7 @@ public class CheckIndex implements Close lastTerm.copyBytes(term); } } + //System.out.println(" count=" + termCount); if (lastTerm != null && termBounds.isEmpty() == false) { BytesRef minTerm = termBounds.removeFirst(); @@ -1524,7 +1529,8 @@ public class CheckIndex implements Close long fieldTermCount = (status.delTermCount+status.termCount)-termCountStart; - if (hasFreqs == false) { + // LUCENE-5879: this is just too slow for now: + if (false && hasFreqs == false) { // For DOCS_ONLY fields we recursively test term ranges: checkTermRanges(field, maxDoc, fieldTerms, fieldTermCount); }