sumitagrawl commented on code in PR #4978:
URL: https://github.com/apache/ozone/pull/4978#discussion_r1243108759
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OmUtils.java:
##########
@@ -268,6 +268,7 @@ public static boolean isReadOnly(
case SnapshotDiff:
case ListSnapshotDiffJobs:
case TransferLeadership:
+ case CustomUnknownCommand:
Review Comment:
IMO we do not need implement new request handler. This is crashing since
IllegalStateException is not caught.
We can use IOException or OMException (sub-class of IOException)... which
will be handled at caller and will return error response automatically.
--
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]