Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 49648 invoked from network); 24 Aug 2010 21:56:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Aug 2010 21:56:56 -0000 Received: (qmail 88808 invoked by uid 500); 24 Aug 2010 21:56:55 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 88768 invoked by uid 500); 24 Aug 2010 21:56:55 -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 88761 invoked by uid 99); 24 Aug 2010 21:56:55 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 21:56:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Aug 2010 21:56:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7OLuGw7026672 for ; Tue, 24 Aug 2010 21:56:16 GMT Message-ID: <31707005.541891282686976382.JavaMail.jira@thor> Date: Tue, 24 Aug 2010 17:56:16 -0400 (EDT) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2598) allow tests to use different Directory impls In-Reply-To: <14085738.281561281550456255.JavaMail.jira@thor> 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-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902093#action_12902093 ] Robert Muir commented on LUCENE-2598: ------------------------------------- at the moment, all tests are passing on windows now with -Dtests.directory=FSDirectory. So I think the next step would be to default to 'random'. and we will need a thing to force certain tests like the one triggered by LUCENE-2239 to not use directories that will always make it fail: it will always fail from NIOFS or Mmap. > allow tests to use different Directory impls > -------------------------------------------- > > Key: LUCENE-2598 > URL: https://issues.apache.org/jira/browse/LUCENE-2598 > Project: Lucene - Java > Issue Type: Test > Components: Build > Affects Versions: 3.1, 4.0 > Reporter: Robert Muir > Assignee: Robert Muir > Fix For: 3.1, 4.0 > > Attachments: LUCENE-2598.patch, LUCENE-2598.patch, LUCENE-2598.patch, LUCENE-2598.patch, LUCENE-2598.patch, LUCENE-2598.patch, LUCENE-2598.patch > > > Now that all tests use MockRAMDirectory instead of RAMDirectory, they are all picky like windows and force our tests to > close readers etc before closing the directory. > I think we should do the following: > # change new MockRAMDIrectory() in tests to .newDirectory(random) > # LuceneTestCase[J4] tracks if all dirs are closed at tearDown and also cleans up temp dirs like solr. > # factor out the Mockish stuff from MockRAMDirectory into MockDirectoryWrapper > # allow a -Dtests.directoryImpl or simpler to specify the default Directory to use for tests: default being "random" > i think theres a chance we might find some bugs that havent yet surfaced because they are easier to trigger with FSDir > Furthermore, this would be beneficial to Directory-implementors as they could run the entire testsuite against their Directory impl, just like codec-implementors can do now. -- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org