hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-4428) Two methods in CacheTestUtils don't call setDaemon() on the threads
Date Sun, 18 Sep 2011 03:15:09 GMT

     [ https://issues.apache.org/jira/browse/HBASE-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated HBASE-4428:
--------------------------

    Attachment: test-TestSingleSizeCache.trace

Trace shows the deadlock between doAnAction() and testCacheMultiThreaded().

> Two methods in CacheTestUtils don't call setDaemon() on the threads
> -------------------------------------------------------------------
>
>                 Key: HBASE-4428
>                 URL: https://issues.apache.org/jira/browse/HBASE-4428
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 4428.addendum, 4428.txt, test-TestSingleSizeCache.trace
>
>
> hammerSingleKey() and hammerEviction() don't call t.setDaemon(true) on the threads they
create.
> The correct pattern is:
> {code}
>       t.setDaemon(true);
>       ctx.addThread(t);
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message