hanishakoneru commented on a change in pull request #276: HDDS-2637. Handle
LeaderNot ready exception in OzoneManager StateMachine and upgrade ratis to
latest version.
URL: https://github.com/apache/hadoop-ozone/pull/276#discussion_r351536237
##########
File path:
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java
##########
@@ -370,13 +396,16 @@ private OMResponse submitRequest(OMRequest omRequest)
return omResponse;
} catch (ServiceException e) {
-// throw ProtobufHelper.getRemoteException(e);
NotLeaderException notLeaderException = getNotLeaderException(e);
if (notLeaderException == null) {
throw ProtobufHelper.getRemoteException(e);
- } else {
- throw new IOException("Could not determine or connect to OM Leader.");
}
+ RatisLeaderNotReadyException leaderNotReadyException =
+ getLeaderNotReadyException(e);
+ if (leaderNotReadyException == null) {
+ throw ProtobufHelper.getRemoteException(e);
Review comment:
We do not need this here. Only for NotLeaderException, we have to change the
error message.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]