hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-2413) Add public APIs for safemode
Date Tue, 11 Oct 2011 10:39:11 GMT

    [ https://issues.apache.org/jira/browse/HDFS-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124916#comment-13124916
] 

Uma Maheswara Rao G commented on HDFS-2413:
-------------------------------------------

I think we can expose below API.
  /** Is the system in safe mode? */
  public boolean isInSafeMode();

So that, the depending systems can check this API to know whether NN is out of safemode or
not.

Todd, is this ok for you? or expecting some other APIs as well?

Thanks
Uma
                
> Add public APIs for safemode
> ----------------------------
>
>                 Key: HDFS-2413
>                 URL: https://issues.apache.org/jira/browse/HDFS-2413
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs client
>    Affects Versions: 0.23.0
>            Reporter: Todd Lipcon
>             Fix For: 0.23.0
>
>
> Currently the APIs for safe-mode are part of DistributedFileSystem, which is supposed
to be a private interface. However, dependent software often wants to wait until the NN is
out of safemode. Though it could poll trying to create a file and catching SafeModeException,
we should consider making some of these APIs public.

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