hemantk-12 opened a new pull request, #5598: URL: https://github.com/apache/ozone/pull/5598
## What changes were proposed in this pull request? As part of the change [#5262](https://github.com/apache/ozone/pull/5262) for fixing of [HDDS-9199](https://issues.apache.org/jira/browse/HDDS-9199), exceptions in snapshot chain creation were changed ISE and same is [thrown back from OMSnapshotCreateRequest](https://github.com/apache/ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/snapshot/OMSnapshotCreateRequest.java#L282) Because of this, if snapshot creation fails due to snapshot chain corruption, `OMSnapshotCreateRequest` throws `IllegalStateException` which is not handled by the state machine. This change is to wrap `IllegalStateException` to `IOException` in `OMSnapshotCreateRequest` so that state machine can handle it properly. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-9685 ## How was this patch tested? Exsiting unit tests. -- 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]
