Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2EE4EE74 for ; Thu, 17 Jan 2013 21:08:16 +0000 (UTC) Received: (qmail 89980 invoked by uid 500); 17 Jan 2013 21:08:16 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 89936 invoked by uid 500); 17 Jan 2013 21:08:16 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 89890 invoked by uid 99); 17 Jan 2013 21:08:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2013 21:08:16 +0000 Date: Thu, 17 Jan 2013 21:08:16 +0000 (UTC) From: "Hudson (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-7602) TestFromClientSide.testPoolBehavior is incorrect 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/HBASE-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13556592#comment-13556592 ] Hudson commented on HBASE-7602: ------------------------------- Integrated in HBase-TRUNK #3763 (See [https://builds.apache.org/job/HBase-TRUNK/3763/]) HBASE-7602 TestFromClientSide.testPoolBehavior is incorrect (Revision 1434855) Result = FAILURE larsh : Files : * /hbase/trunk/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java > TestFromClientSide.testPoolBehavior is incorrect > ------------------------------------------------ > > Key: HBASE-7602 > URL: https://issues.apache.org/jira/browse/HBASE-7602 > Project: HBase > Issue Type: Bug > Reporter: Lars Hofhansl > Assignee: Lars Hofhansl > Fix For: 0.96.0, 0.94.5 > > Attachments: 7602-0.94.txt, 7602-0.96.txt > > > The writer of this test misunderstood ThreadPoolExecutor. > The test adds Threads as tasks to a ThreadPoolExecutor and then calls join on the Thread objects. But these are not the running threads, it work by pure accident, because Thread happens to implement Runnable. > {code} > pool.submit(threads.get(0)); > ... > threads.get(0).join(); > {code} > The join will always return immediately, because the thread never ran. > This should instead synchronize on the Future returned from submit instead, otherwise there is no guarantee that the threads in the pool actually finished. -- 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