[ 
https://issues.apache.org/jira/browse/HDDS-8856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sumit Agrawal resolved HDDS-8856.
---------------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed

> Client sending an unknown request should not crash OM
> -----------------------------------------------------
>
>                 Key: HDDS-8856
>                 URL: https://issues.apache.org/jira/browse/HDDS-8856
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Tanvi Penumudy
>            Assignee: Tanvi Penumudy
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> The following call stack was noticed while testing out a new command. If the 
> server sees an unknown request, it should reject it instead of raising an 
> exception and crashing.
> {code:java}
> java.lang.IllegalStateException: Unrecognized write command type 
> requestEchoRPC
>         at 
> org.apache.hadoop.ozone.om.ratis.utils.OzoneManagerRatisUtils.createClientRequest(OzoneManagerRatisUtils.java:308)
>         at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:335)
>         at 
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:533)
>         at 
> org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$1(OzoneManagerStateMachine.java:324)
>         at 
> java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>         at java.base/java.lang.Thread.run(Thread.java:834){code}
> From OzoneManagerRatisUtils.java
> {code:java}
>     default:
>       throw new IllegalStateException("Unrecognized write command " +
>           "type request" + cmdType);
>     }{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to