symious opened a new pull request #2424: URL: https://github.com/apache/ozone/pull/2424
## What changes were proposed in this pull request? 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". ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-5455 ## How was this patch tested? unit test -- 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]
