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 1D0B0D4C1 for ; Fri, 5 Oct 2012 16:16:04 +0000 (UTC) Received: (qmail 56121 invoked by uid 500); 5 Oct 2012 16:16:03 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 55944 invoked by uid 500); 5 Oct 2012 16:16:02 -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 55936 invoked by uid 99); 5 Oct 2012 16:16:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 16:16:02 +0000 Date: Fri, 5 Oct 2012 16:16:02 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <1568881739.1443.1349453762889.JavaMail.jiratomcat@arcas> In-Reply-To: <1174680894.783.1349444283074.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (LUCENE-4460) Test exception handling better/easier than testThreadInterruptDeadlock() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470425#comment-13470425 ] Michael McCandless commented on LUCENE-4460: -------------------------------------------- +1 > Test exception handling better/easier than testThreadInterruptDeadlock() > ------------------------------------------------------------------------ > > Key: LUCENE-4460 > URL: https://issues.apache.org/jira/browse/LUCENE-4460 > Project: Lucene - Core > Issue Type: Bug > Components: general/test > Reporter: Robert Muir > > currently the fact that MockDirectoryWrapper has throttlers and such that sleep, combined with the fact this test interrupts, makes a good test for exception handling. > The problem is this is really crappy to debug: things dont reproduce, you have to use hundreds or thousands of iterations, etc etc. > I think it would be better if we made it possible for MockIndexInput to throw random exceptions like MockIndexOutput and had a single threaded test that just threw random exceptions? This way it would reproduce... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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