From 521e65acfe9dcac3434e3a1d3eabd4fe8da79013 Mon Sep 17 00:00:00 2001 From: xuzq <15040255127@163.com> Date: Sat, 13 Aug 2022 02:51:11 +0800 Subject: [PATCH] HDFS-16723. Replace incorrect SafeModeException with StandbyException in RouterRpcServer.class (#4716). Contributed by ZanderXu. Signed-off-by: Ayush Saxena --- .../hadoop/hdfs/server/federation/router/RouterRpcServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java index 423e0ba8e48..ba805113f4d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java @@ -581,7 +581,7 @@ public class RouterRpcServer extends AbstractService implements ClientProtocol, * @param op Category of the operation to check. * @param supported If the operation is supported or not. If not, it will * throw an UnsupportedOperationException. - * @throws SafeModeException If the Router is in safe mode and cannot serve + * @throws StandbyException If the Router is in safe mode and cannot serve * client requests. * @throws UnsupportedOperationException If the operation is not supported. */ @@ -604,7 +604,7 @@ public class RouterRpcServer extends AbstractService implements ClientProtocol, * UNCHECKED. This function should be called by all ClientProtocol functions. * * @param op Category of the operation to check. - * @throws SafeModeException If the Router is in safe mode and cannot serve + * @throws StandbyException If the Router is in safe mode and cannot serve * client requests. */ void checkOperation(OperationCategory op)