Janus Chow created HDDS-5455:
--------------------------------

             Summary: OM shutdown when creating key with malformed characters
                 Key: HDDS-5455
                 URL: https://issues.apache.org/jira/browse/HDDS-5455
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Janus Chow
            Assignee: Janus Chow


In OzoneManagerStateMachine.runCommand, if there is a Runtime exception, OM 
will be terminated.

In our case, the user would like to create an object with malformed characters 
in keyName, and the following error happened and throws an 
InvalidPathException, which is a Runtime Exception causing the OM's shutdown.

Normally this wouldn't happen, since a user can not easily create an invalid 
keyName with UTF-8. It happened in our environment because our OM started with 
the property of "file.encoding" and "sun.jnu.encoding" set to "ANSI_X3.4-1968", 
and it's easy for the user to write a invalid keyName.

This issue can be avoided when running in a good environment, but it's still 
not reasonable that a client create key operation causing the shutdown of OM.

This ticket is to check the keyName if it fits the current encoding of OM, if 
not just return the OMException of "INVALID_KEY_NAME".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to