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:
parent
8c9533a0f8
commit
521e65acfe
@ -581,7 +581,7 @@ public InetSocketAddress getRpcAddress() {
|
|||||||
* @param op Category of the operation to check.
|
* @param op Category of the operation to check.
|
||||||
* @param supported If the operation is supported or not. If not, it will
|
* @param supported If the operation is supported or not. If not, it will
|
||||||
* throw an UnsupportedOperationException.
|
* 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.
|
* client requests.
|
||||||
* @throws UnsupportedOperationException If the operation is not supported.
|
* @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.
|
* UNCHECKED. This function should be called by all ClientProtocol functions.
|
||||||
*
|
*
|
||||||
* @param op Category of the operation to check.
|
* @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.
|
* client requests.
|
||||||
*/
|
*/
|
||||||
void checkOperation(OperationCategory op)
|
void checkOperation(OperationCategory op)
|
||||||
|
Loading…
Reference in New Issue
Block a user