hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-3518) Provide API to check HDFS operational state
Date Tue, 12 Jun 2012 06:32:43 GMT

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

Tsz Wo (Nicholas), SZE updated HDFS-3518:
-----------------------------------------

    Attachment: h3518_20120611.patch

I still think that isHealthy and isInSafeMode are different:
- SafeMode is one of the conditions to determine healthy.
- isInSafeMode may throw exception but isHealthy won't.  When there is an exception, isHealthy
simply returns false.
- If retry is set in conf or in a cached DistributedFileSystem, isInSafeMode may retry for
a long time.  isHealthy disable cache and retry.

isHealthy is a high level utility method that makes use of isInSafeMode, which is a low level
method, so that isHealthy could hide the details of handling cache, retry and exceptions.

h3518_20120611.patch: adds HdfsUtils.isHealthy(URI).
                
> Provide API to check HDFS operational state
> -------------------------------------------
>
>                 Key: HDFS-3518
>                 URL: https://issues.apache.org/jira/browse/HDFS-3518
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs client
>            Reporter: Bikas Saha
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: h3518_20120611.patch
>
>
> This will improve the usability of JobTracker safe mode.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message