Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 13671 invoked from network); 7 Jul 2007 12:19:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jul 2007 12:19:28 -0000 Received: (qmail 10209 invoked by uid 500); 7 Jul 2007 12:19:30 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 9554 invoked by uid 500); 7 Jul 2007 12:19:28 -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 9535 invoked by uid 99); 7 Jul 2007 12:19:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2007 05:19:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jul 2007 05:19:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 74DEB714187 for ; Sat, 7 Jul 2007 05:19:04 -0700 (PDT) Message-ID: <7336501.1183810744456.JavaMail.jira@brutus> Date: Sat, 7 Jul 2007 05:19:04 -0700 (PDT) From: "Michael McCandless (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-952) GData's TestGdataIndexer.testDestroy() intermittently hits spin loop & causes build timeout MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org GData's TestGdataIndexer.testDestroy() intermittently hits spin loop & causes build timeout ------------------------------------------------------------------------------------------- Key: LUCENE-952 URL: https://issues.apache.org/jira/browse/LUCENE-952 Project: Lucene - Java Issue Type: Bug Components: Other Affects Versions: 2.3 Reporter: Michael McCandless Assignee: Michael McCandless Several nightly builds (at least #136, #143 and #144) have failed due to timeout at 45 minutes while running the TestGdataIndexer.testDestroy() test case. I tracked it down to this line: // wait active for the commit while(this.indexer.writer != null){} Intermittently, that while loop will spin forever. I can only get the failure to happen on Linux: it doesn't happen on Mac OS X (haven't tried windows). The nightly build runs on Solaris 10, so it also happens there. It turns out, this is due to the fact that "writer" is not declared as "volatile". This is because one thread is closing the indexer, which sets writer to null, but another thread is running the while loop. If this.indexer.writer was set to null before that while loop starts, the test will run through fine; else, it won't. I plan to fix this by adding this method to GDataIndexer class: // Used only for testing protected synchronized IndexWriter getWriter() { return this.writer; } and changing unit test to call that method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org