Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 55178 invoked from network); 4 Aug 2008 21:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Aug 2008 21:02:23 -0000 Received: (qmail 52689 invoked by uid 500); 4 Aug 2008 21:02:20 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 52654 invoked by uid 500); 4 Aug 2008 21:02:20 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 52645 invoked by uid 99); 4 Aug 2008 21:02:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 14:02:20 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 21:01:24 +0000 Received: by an-out-0708.google.com with SMTP id c37so2406493anc.49 for ; Mon, 04 Aug 2008 14:01:50 -0700 (PDT) Received: by 10.100.242.20 with SMTP id p20mr357373anh.14.1217883710339; Mon, 04 Aug 2008 14:01:50 -0700 (PDT) Received: from ?10.17.4.4? ( [72.93.214.93]) by mx.google.com with ESMTPS id d34sm7302093and.3.2008.08.04.14.01.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Aug 2008 14:01:49 -0700 (PDT) Message-Id: <83B86D4F-925B-4346-B470-99BA739B3DA6@mikemccandless.com> From: Michael McCandless To: java-dev@lucene.apache.org In-Reply-To: <0DE83926-039E-46FB-ABC2-4667EFC8B07F@apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: CheckIndex tool Date: Mon, 4 Aug 2008 17:01:48 -0400 References: <0DE83926-039E-46FB-ABC2-4667EFC8B07F@apache.org> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org This sounds good! I like the idea of checking the index when Solr has to force release the write.lock. The one caveat is, when checking a large index (which can take quite some time), it'd be nice to have the equivalent of the inline'd out.print/ln calls happen in realtime so that you can see (on the command line output) that progress is being made, which segment is being checked, etc.? Maybe change it to an optional "infoStream" (like IndexWriter), and then the current inlined prints become calls to message() which checks if infoStream is non-null? Mike Grant Ingersoll wrote: > Hey Mike, > > I'm thinking about https://issues.apache.org/jira/browse/SOLR-566 > and was thinking about adding some more programmatic access to the > CheckIndex tool and wanted to see if you had any thoughts. > Basically, I am going to to capture info into a simple data > structure that can then be introspected and serialized into a > RequestHandler, but also something that might be more generally > useful in certain cases where things go bad. I was debating keeping > the inline out.printlns, but not sure if they shouldn't just be > moved to the main such that the cmd line stuff still works as is, > but it doesn't clog the logs for those that want programmatic access. > > I'll post a patch soon, but wanted to see if you had any preliminary > insight. > > -Grant > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org