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 763E79B9A for ; Wed, 29 Feb 2012 09:36:19 +0000 (UTC) Received: (qmail 98236 invoked by uid 500); 29 Feb 2012 09:36:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 98183 invoked by uid 500); 29 Feb 2012 09:36:18 -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 98176 invoked by uid 99); 29 Feb 2012 09:36:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 09:36:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 09:36:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DC35F5408D for ; Wed, 29 Feb 2012 09:35:56 +0000 (UTC) Date: Wed, 29 Feb 2012 09:35:56 +0000 (UTC) From: "Dawid Weiss (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <533429124.1926.1330508156903.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1158554599.2865.1329754895017.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3808) Switch LuceneTestCaseRunner to RandomizedRunner. Enforce Random sharing contracts. Enforce thread leaks. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13219024#comment-13219024 ] Dawid Weiss commented on LUCENE-3808: ------------------------------------- I've found this in the code: {noformat} private final Random r; public MockIndexWriter(Random r, Directory dir, IndexWriterConfig conf) throws IOException { super(dir, conf); // must make a private random since our methods are // called from different threads; else test failures may // not be reproducible from the original seed this.r = new Random(r.nextInt()); {noformat} Ha! :) > Switch LuceneTestCaseRunner to RandomizedRunner. Enforce Random sharing contracts. Enforce thread leaks. > -------------------------------------------------------------------------------------------------------- > > Key: LUCENE-3808 > URL: https://issues.apache.org/jira/browse/LUCENE-3808 > Project: Lucene - Java > Issue Type: Sub-task > Components: general/test > Reporter: Dawid Weiss > Assignee: Dawid Weiss > Priority: Minor > Fix For: 4.0 > > > Switch the runner to RandomizedRunner. Enforce the following: > - Random sharing will result in a failure/ exception. > - Thread leaks will result in a failure (add lingering if needed, but no ignores). > - Add a validator for @Test method overrides (no-no). > - Add a validator for static hook shadowing (no-no). > - -Add a validator for testXXX without @Test annotation.- > - Modify custom execution groups in LTC to be real @Groups. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org