Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 71569 invoked from network); 16 May 2008 14:00:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 14:00:58 -0000 Received: (qmail 6012 invoked by uid 500); 16 May 2008 14:00:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 5966 invoked by uid 500); 16 May 2008 14:00:55 -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 5946 invoked by uid 99); 16 May 2008 14:00:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 07:00:55 -0700 X-ASF-Spam-Status: No, hits=3.0 required=10.0 tests=MIME_QP_LONG_LINE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.178.242] (HELO hs-out-0708.google.com) (64.233.178.242) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 14:00:07 +0000 Received: by hs-out-0708.google.com with SMTP id 4so737825hsl.5 for ; Fri, 16 May 2008 07:00:18 -0700 (PDT) Received: by 10.90.75.13 with SMTP id x13mr5042600aga.19.1210946417899; Fri, 16 May 2008 07:00:17 -0700 (PDT) Received: from ?10.17.4.4? ( [72.93.214.93]) by mx.google.com with ESMTPS id 5sm4323857agc.27.2008.05.16.07.00.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 May 2008 07:00:17 -0700 (PDT) In-Reply-To: <429707.60407.qm@web50309.mail.re2.yahoo.com> References: <429707.60407.qm@web50309.mail.re2.yahoo.com> Mime-Version: 1.0 (Apple Message framework v753) Content-Type: multipart/mixed; boundary=Apple-Mail-1-710980217 Message-Id: Cc: Otis Gospodnetic From: Michael McCandless Subject: Re: TestPayloads FAILED? Date: Fri, 16 May 2008 10:00:14 -0400 To: java-dev@lucene.apache.org X-Mailer: Apple Mail (2.753) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1-710980217 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Otis, could you try the attached patch? I just changed the test to consistently correct invalid UTF16 sequences. Mike --Apple-Mail-1-710980217 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Otis Gospodnetic wrote: > Mike, yeah, I just got the test to fail a few more times and then =20 > pass once. I *think* the expected vs. was output was slightly =20 > different in different failed runs, so it might be that random bit =20 > that's the culprit > > java.nio.charset.Charset.defaultCharset().name() gives me "UTF-8" =20 > on my JVM: > $ java -version > java version "1.6.0_03" > Java(TM) SE Runtime Environment (build 1.6.0_03-b05) > Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing) > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > ----- Original Message ---- >> From: Michael McCandless >> To: java-dev@lucene.apache.org >> Sent: Wednesday, May 14, 2008 3:59:01 AM >> Subject: Re: TestPayloads FAILED? >> >> >> I can't get this testcase to fail. >> >> I've got in running over and over on Win XP / JRE 1.4 and OS X / JRE >> 1.5 and haven't seen a failure. >> >> Otis what are the specs of your laptop? >> >> Hmm, actually, looking at that test, it generates a random byte >> sequence as the payload and then builds a String from that byte >> sequence using the default charset. This is actually risky because >> it's entirely possible this would randomly generate an invalid UTF16 >> string, which could cause that exact failure. >> >> Otis what's the default charset for the JRE (OS) on your laptop? >> >> Mike >> >> Otis Gospodnetic wrote: >>> Hi, >>> >>> Is this just me? I have not run unit tests in a loooong time and >>> when I tried tonight this failed twice in a row. I don't recall >>> any mentions of this on the ML, plus we are not getting nb failure >>> emails... just me and my laptop? >>> >>> [junit] Testcase: testThreadSafety >>> (org.apache.lucene.index.TestPayloads): FAILED >>> [junit] expected:<[?]=EF=BF=BD=EF=BF=BD> but was:<[=EF=BF=BD]=EF=BF= =BD=EF=BF=BD> >>> [junit] junit.framework.ComparisonFailure: expected:<[?]=EF=BF=BD=EF= =BF=BD> >>> but was:<[=EF=BF=BD]=EF=BF=BD=EF=BF=BD> >>> [junit] at >>> org.apache.lucene.index.TestPayloads.testThreadSafety >>> (TestPayloads.java:514) >>> [junit] Test org.apache.lucene.index.TestPayloads FAILED >>> >>> Thanks, >>> Otis >>> -- >>> Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch >>> >>> >>> --------------------------------------------------------------------=20= >>> - >>> 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > --Apple-Mail-1-710980217 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org --Apple-Mail-1-710980217--