HDFS-16723. Replace incorrect SafeModeException with StandbyException in RouterRpcServer.class (#4716). Contributed by ZanderXu.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
xuzq 2022-08-13 02:51:11 +08:00 committed by GitHub
parent 8c9533a0f8
commit 521e65acfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)