hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8894) GenericTestUtils.waitFor should dump thread stacks on timeout
Date Sat, 06 Oct 2012 01:12:04 GMT

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

Todd Lipcon updated HADOOP-8894:
--------------------------------

    Attachment: hadoop-8894.txt

Attached patch borrows the code from TimedOutTestListener so that the timeout exception contains
all the thread stacks as well as potential deadlock info.

No new tests included because this is itself test code.
                
> GenericTestUtils.waitFor should dump thread stacks on timeout
> -------------------------------------------------------------
>
>                 Key: HADOOP-8894
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8894
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>         Attachments: hadoop-8894.txt
>
>
> Many tests use this utility to wait for a condition to become true. In the event that
it times out, we should dump all the thread stack traces, in case the timeout was due to a
deadlock. This should make it easier to debug scenarios like HDFS-4001.

--
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

Mime
View raw message