Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 91316926C for ; Mon, 19 Mar 2012 04:45:05 +0000 (UTC) Received: (qmail 93843 invoked by uid 500); 19 Mar 2012 04:45:04 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 93732 invoked by uid 500); 19 Mar 2012 04:45:03 -0000 Mailing-List: contact dev-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 dev@lucene.apache.org Received: (qmail 93706 invoked by uid 99); 19 Mar 2012 04:45:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 04:45:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryantxu@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 04:44:56 +0000 Received: by iagw33 with SMTP id w33so11981339iag.35 for ; Sun, 18 Mar 2012 21:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pnBEKPueS+wTWk/r9x5MGfg7EnTVjcISdHMek5MYvbA=; b=wSh6wyuCSHDEsTKL60jsN8Lx+ICGo3OBDoGiBNPfgXvKnkzWMm1+Mll5VB0sGNuXzR 5lyX99dngMOqt2hFRIBv9DMZo0z+QQrSKxCFC1l2qgUT8mqtsh9pugx4T5gFRixSUMcU xA2kpIPlOoOMEV3NkQ3v3xTdl694OhPeGjwaZS3yqyalEtGQr1/adI16LIjsyYJlfy4q 92pXWpPvQ9APX41rFJyx7ukM7KUdu8PhrsvOXF1Zfg6LeGhcF91W08dS7Tt9c9c5CfWD lCWOWnwfITG1bwamVP26OUgJ4zQHm+R/QWOsspDWVb/PdjP6g880gSBhUkJygIjQoKfb zMUQ== MIME-Version: 1.0 Received: by 10.60.4.10 with SMTP id g10mr12202457oeg.18.1332132276415; Sun, 18 Mar 2012 21:44:36 -0700 (PDT) Received: by 10.182.97.4 with HTTP; Sun, 18 Mar 2012 21:44:36 -0700 (PDT) In-Reply-To: References: Date: Sun, 18 Mar 2012 21:44:36 -0700 Message-ID: Subject: Re: Weird solr errors? From: Ryan McKinley To: dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org See SolrExampleTests#testErrorHandling() The test sends in stuff that fails badly and makes sure it gets the right error back. try { server.deleteByQuery( "??::??" ); // query syntax error Assert.fail("should have a number format exception"); } catch(SolrException ex) { assertEquals(400, ex.code()); ... } For output readability, it would be great to be able to hide the output when we *know* it is expected. Is that possible? Is there a better way to test for exceptions you want to get thrown? ryan On Sun, Mar 18, 2012 at 11:16 AM, Dawid Weiss wrote: > This is a build log that failed recently. It isn't any of the usual > offenders -- could I ask for somebody who knows Solr better and can > interpret this? > > Namely these are weird: > >> Caused by: org.apache.lucene.queryparser.classic.ParseException: Cannot parse '??::??': Encountered " ":" ": "" at line 1, column 2. > > and this one: > >> 5558 T30 C0 oasc.SolrException.log SEVERE org.apache.solr.common.SolrException: Invalid Number: hello > > I was also thinking that it's really hard to tell if some of the > SEVERE logs are a result of expected tested behavior or if they're > something that should is a red warning light. We could implement a > mechanism which would suppress certain logs (by pattern?) from > appearing if they're expected in a test's output? > > Dawid > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: dev-help@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org