kerneltime commented on code in PR #3382:
URL: https://github.com/apache/ozone/pull/3382#discussion_r872596745
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/utils/OzoneManagerRatisUtils.java:
##########
@@ -401,43 +399,13 @@ public static String
getOMRatisSnapshotDirectory(ConfigurationSource conf) {
return snapshotDir;
}
- public static void checkLeaderStatus(RaftServerStatus raftServerStatus,
- RaftPeerId raftPeerId) throws ServiceException {
- switch (raftServerStatus) {
- case LEADER_AND_READY: return;
-
- case LEADER_AND_NOT_READY: throw createLeaderNotReadyException(raftPeerId);
-
- case NOT_LEADER: throw createNotLeaderException(raftPeerId);
-
- default: throw new IllegalStateException(
- "Unknown Ratis Server state: " + raftServerStatus);
+ public static void checkLeaderStatus(OzoneManager ozoneManager)
Review Comment:
I think we can drop this method.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]