You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Li Lu (JIRA)" <ji...@apache.org> on 2015/02/07 00:40:34 UTC

[jira] [Updated] (YARN-3155) Refactor the exception handling code for TimelineClientImpl's retryOn method

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

Li Lu updated YARN-3155:
------------------------
    Attachment: YARN-3155-020615.patch

In this patch I refactored the catch blocks in TimelineClientConnectionRetry's retryOn method. I used the Java 1.7's new catch block to eliminate the repeated exception handling code for two types of exceptions. 

> Refactor the exception handling code for TimelineClientImpl's retryOn method
> ----------------------------------------------------------------------------
>
>                 Key: YARN-3155
>                 URL: https://issues.apache.org/jira/browse/YARN-3155
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Li Lu
>            Assignee: Li Lu
>            Priority: Minor
>              Labels: refactoring
>         Attachments: YARN-3155-020615.patch
>
>
> Since we switched to Java 1.7, the exception handling code for the retryOn method can be merged into one statement block, instead of the current two, to avoid repeated code. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)