hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8321) CacheDirectives and CachePool operations should throw RetriableException in safemode
Date Fri, 08 May 2015 15:18:08 GMT

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

Hudson commented on HDFS-8321:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #2119 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2119/])
HDFS-8321. CacheDirectives and CachePool operations should throw RetriableException in safemode.
Contributed by Haohui Mai. (wheat9: rev 767b91cd834dc235ce9d116ba745b90c24ebe290)
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


> CacheDirectives and CachePool operations should throw RetriableException in safemode
> ------------------------------------------------------------------------------------
>
>                 Key: HDFS-8321
>                 URL: https://issues.apache.org/jira/browse/HDFS-8321
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>            Assignee: Haohui Mai
>              Labels: BB2015-05-TBR
>             Fix For: 2.8.0
>
>         Attachments: HDFS-8321.000.patch, HDFS-8321.001.patch, HDFS-8321.002.patch
>
>
> Operations such as {{addCacheDirectives()}} throws {{SafeModeException}} when the NN
is in safemode:
> {code}
>       if (isInSafeMode()) {
>         throw new SafeModeException(
>             "Cannot add cache directive", safeMode);
>       }
> {code}
> While other NN operations throws {{RetriableException}} when HA is enabled:
> {code}
>   void checkNameNodeSafeMode(String errorMsg)
>       throws RetriableException, SafeModeException {
>     if (isInSafeMode()) {
>       SafeModeException se = new SafeModeException(errorMsg, safeMode);
>       if (haEnabled && haContext != null
>           && haContext.getState().getServiceState() == HAServiceState.ACTIVE
>           && shouldRetrySafeMode(this.safeMode)) {
>         throw new RetriableException(se);
>       } else {
>         throw se;
>       }
>     }
>   }
> {code}



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

Mime
View raw message