From d20cc5c99cbe732777d6be466cb7c37aa5b1fe2e Mon Sep 17 00:00:00 2001 From: "zengqiang.xu" Date: Sun, 7 Aug 2022 21:03:08 +0800 Subject: [PATCH] HDFS-16723. Replace incorrect SafeModeException with StandbyException in RouterRpcServer.class --- .../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 423e0ba8e483e..ba805113f4d0a 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 InetSocketAddress getRpcAddress() { * @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 @@ void checkOperation(OperationCategory op, boolean supported) * 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)