[
https://issues.apache.org/jira/browse/HDFS-16436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fengnan Li updated HDFS-16436:
------------------------------
Description:
In Router's
[checkOperation|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java#L630]
call, the READ operation check is before safemode check. This has one issue
where in the case of Mount Table Unavailable, READ can still pass the check
while Router can not get the correct path location. Down the path is the
FileNotFoundException and clients cannot retry. It is better for clients to
receive the standbyException and failover early.
This will solve one issue when one router host is somehow having issues with
mount table.
was:In Router's
[checkOperation|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java#L630]
call, the READ operation check is before safemode check. This has one issue
where in the case of Mount Table Unavailable, READ can still pass the check
while Router can not get the correct path location.
> RBF: CheckSafeMode before Read Operation
> ----------------------------------------
>
> Key: HDFS-16436
> URL: https://issues.apache.org/jira/browse/HDFS-16436
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: rbf
> Reporter: Fengnan Li
> Assignee: Fengnan Li
> Priority: Major
>
> In Router's
> [checkOperation|https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java#L630]
> call, the READ operation check is before safemode check. This has one issue
> where in the case of Mount Table Unavailable, READ can still pass the check
> while Router can not get the correct path location. Down the path is the
> FileNotFoundException and clients cannot retry. It is better for clients to
> receive the standbyException and failover early.
> This will solve one issue when one router host is somehow having issues with
> mount table.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]