You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "sumitagrawl (via GitHub)" <gi...@apache.org> on 2023/06/27 03:52:27 UTC

[GitHub] [ozone] sumitagrawl commented on a diff in pull request #4978: HDDS-8856. Client sending an unknown request should not crash OM

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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org