Return-Path: Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: (qmail 2334 invoked from network); 2 Nov 2010 01:54:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Nov 2010 01:54:18 -0000 Received: (qmail 51657 invoked by uid 500); 2 Nov 2010 01:54:49 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 51594 invoked by uid 500); 2 Nov 2010 01:54:49 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 51586 invoked by uid 99); 2 Nov 2010 01:54:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 01:54:49 +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, 02 Nov 2010 01:54:47 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA21sP0b020719 for ; Tue, 2 Nov 2010 01:54:25 GMT Message-ID: <21187503.186661288662865265.JavaMail.jira@thor> Date: Mon, 1 Nov 2010 21:54:25 -0400 (EDT) From: "Edward J. Yoon (JIRA)" To: hama-dev@incubator.apache.org Subject: [jira] Commented: (HAMA-322) Make sure failed assertions on test threads are reported In-Reply-To: <15333486.106861288213039437.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/HAMA-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927250#action_12927250 ] Edward J. Yoon commented on HAMA-322: ------------------------------------- Looks great and > other multithreaded tests we might have in the future I seriously agree with you. > Make sure failed assertions on test threads are reported > -------------------------------------------------------- > > Key: HAMA-322 > URL: https://issues.apache.org/jira/browse/HAMA-322 > Project: Hama > Issue Type: Bug > Components: test > Affects Versions: 0.2.1 > Reporter: Filipe Manana > Assignee: Filipe Manana > Fix For: 0.2.0 > > Attachments: HAMA-322_v03.patch, newpatch.patch, test_bsp_peer_fix.patch > > > When running a JUnit test, like TestBSPPeer, if an assertion fails in some thread, it is not reported in the console (only failed assertions of the main thread are reported). However the assertion failed exception is logged in the test report under build/report/tests/. > Example: > $ ant test > jar:file:/home/fdmanana/git/apache/hama/lib/findbugs/ant.jar!/org/apache/tools/ant/Project.class > [junit] Running org.apache.hama.bsp.TestBSPPeer > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 13.941 sec > $ cat build/reports/tests/TEST-org.apache.hama.bsp.TestBSPPeer.txt > .... > 2010-10-27 12:54:09,361 ERROR [Thread-97] > server.NIOServerCnxn$Factory$1(81): Thread Thread[Thread-97,5,main] > died > junit.framework.AssertionFailedError: expected:<20> but was:<1> > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.failNotEquals(Assert.java:282) > at junit.framework.Assert.assertEquals(Assert.java:64) > at junit.framework.Assert.assertEquals(Assert.java:201) > at junit.framework.Assert.assertEquals(Assert.java:207) > at org.apache.hama.bsp.TestBSPPeer$BSPPeerThread.run(TestBSPPeer.java:131) > 2010-10-27 12:54:09,362 ERROR [Thread-81] > server.NIOServerCnxn$Factory$1(81): Thread Thread[Thread-81,5,main] > died > junit.framework.AssertionFailedError: expected:<20> but was:<1> > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.failNotEquals(Assert.java:282) > at junit.framework.Assert.assertEquals(Assert.java:64) > at junit.framework.Assert.assertEquals(Assert.java:201) > at junit.framework.Assert.assertEquals(Assert.java:207) > at org.apache.hama.bsp.TestBSPPeer$BSPPeerThread.run(TestBSPPeer.java:131) > .... > We should probably use something like GroboTestingJUnit: http://today.java.net/pub/a/today/2003/08/06/multithreadedTests.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.