Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 22863 invoked from network); 16 May 2009 09:58:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 May 2009 09:58:11 -0000 Received: (qmail 90734 invoked by uid 500); 16 May 2009 09:58:10 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 90665 invoked by uid 500); 16 May 2009 09:58:09 -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 90657 invoked by uid 99); 16 May 2009 09:58:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2009 09:58:09 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.46.31] (HELO yw-out-2324.google.com) (74.125.46.31) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2009 09:57:58 +0000 Received: by yw-out-2324.google.com with SMTP id 2so1164625ywt.5 for ; Sat, 16 May 2009 02:57:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.131.3 with SMTP id i3mr7849882ybn.206.1242467857378; Sat, 16 May 2009 02:57:37 -0700 (PDT) In-Reply-To: <6BB57FD150AD419C9E964D7677711638@VEGA> References: <59b3eb370905160210h5a49ce91n8736aa9995c0b5e6@mail.gmail.com> <6BB57FD150AD419C9E964D7677711638@VEGA> Date: Sat, 16 May 2009 05:57:37 -0400 Message-ID: <9ac0c6aa0905160257o3ec098b9q1407b34f388649d6@mail.gmail.com> Subject: Re: Random test failure From: Michael McCandless To: java-dev@lucene.apache.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org MockRAMDirectory already tries to synchronize access to its openFiles HashSet... but it must be missing somewhere. Mike 2009/5/16 Uwe Schindler : > Hi Earwin, > > As this error occurs directly inside the HashMap and so is Java's code, I > think this is > a) an error in Java's HashMap implementation (haha, unlikely). But I tend= to > say, Java's HashMap is correct... > b) missing synchronization around the HashMap, so it is modified at the s= ame > time. So either we should use a Collections.synchronizedMap() here or > somehow control synchronization in a different way. > > Uwe > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: uwe@thetaphi.de > >> -----Original Message----- >> From: Earwin Burrfoot [mailto:earwin@gmail.com] >> Sent: Saturday, May 16, 2009 11:10 AM >> To: java-dev@lucene.apache.org >> Subject: Random test failure >> >> Running latest lucene trunk with some patches applied, but they do not >> touch IndexWriter and friends anywhere. >> Happened once, I failed to reproduce it, with and without patches. >> >> Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153) >> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode) >> >> [junit] Testsuite: org.apache.lucene.index.TestOmitTf >> [junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.708 sec >> [junit] >> [junit] ------------- Standard Error ----------------- >> [junit] Exception in thread "Lucene Merge Thread #0" >> org.apache.lucene.index.MergePolicy$MergeException: >> java.lang.ArrayIndexOutOfBoundsException: 36 >> [junit] =9A =9A =9A at >> org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(Co= nc >> urrentMergeScheduler.java:351) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(Concurr= en >> tMergeScheduler.java:315) >> [junit] Caused by: java.lang.ArrayIndexOutOfBoundsException: 36 >> [junit] =9A =9A =9A at java.util.HashMap.getEntry(HashMap.java:345) >> [junit] =9A =9A =9A at java.util.HashMap.containsKey(HashMap.java:335) >> [junit] =9A =9A =9A at java.util.HashSet.contains(HashSet.java:184) >> [junit] =9A =9A =9A at >> org.apache.lucene.store.MockRAMDirectory.createOutput(MockRAMDirectory.j= av >> a:212) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.FormatPostingsPositionsWriter.(FormatPosti= ng >> sPositionsWriter.java:42) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.FormatPostingsDocsWriter.(FormatPostingsDo= cs >> Writer.java:55) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.FormatPostingsTermsWriter.(FormatPostingsT= er >> msWriter.java:33) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.FormatPostingsFieldsWriter.(FormatPostings= Fi >> eldsWriter.java:59) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:485) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4808) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4425) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMerge= Sc >> heduler.java:235) >> [junit] =9A =9A =9A at >> org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(Concurr= en >> tMergeScheduler.java:291) >> [junit] ------------- ---------------- --------------- >> [junit] Testcase: testBasic(org.apache.lucene.index.TestOmitTf): > FAILED >> [junit] ConcurrentMergeScheduler hit unhandled exceptions >> [junit] junit.framework.AssertionFailedError: ConcurrentMergeScheduler >> hit unhandled exceptions >> [junit] =9A =9A =9A at >> org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:55) >> [junit] >> [junit] >> [junit] Test org.apache.lucene.index.TestOmitTf FAILED >> >> >> -- >> Kirill Zakharenko/=EB=C9=D2=C9=CC=CC =FA=C1=C8=C1=D2=C5=CE=CB=CF (earwin= @gmail.com) >> Home / Mobile: +7 (495) 683-567-4 / +7 (903) 5-888-423 >> ICQ: 104465785 >> >> --------------------------------------------------------------------- >> 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