You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2012/10/06 03:12:04 UTC

[jira] [Updated] (HADOOP-8894) GenericTestUtils.waitFor should dump thread stacks on timeout

     [ 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