Skip to content

Commit 521e65a

Browse files
authored
HDFS-16723. Replace incorrect SafeModeException with StandbyException in RouterRpcServer.class (#4716). Contributed by ZanderXu.
Signed-off-by: Ayush Saxena <[email protected]>
1 parent 8c9533a commit 521e65a

File tree

1 file changed

+2
-2
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ public InetSocketAddress getRpcAddress() {
581581
* @param op Category of the operation to check.
582582
* @param supported If the operation is supported or not. If not, it will
583583
* throw an UnsupportedOperationException.
584-
* @throws SafeModeException If the Router is in safe mode and cannot serve
584+
* @throws StandbyException If the Router is in safe mode and cannot serve
585585
* client requests.
586586
* @throws UnsupportedOperationException If the operation is not supported.
587587
*/
@@ -604,7 +604,7 @@ void checkOperation(OperationCategory op, boolean supported)
604604
* UNCHECKED. This function should be called by all ClientProtocol functions.
605605
*
606606
* @param op Category of the operation to check.
607-
* @throws SafeModeException If the Router is in safe mode and cannot serve
607+
* @throws StandbyException If the Router is in safe mode and cannot serve
608608
* client requests.
609609
*/
610610
void checkOperation(OperationCategory op)

0 commit comments

Comments
 (0)