[
https://issues.apache.org/jira/browse/HDDS-9685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hemant Kumar updated HDDS-9685:
-------------------------------
Description:
As fix of 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 task is to handle IllegalStateException properly in
OMSnapshotCreateRequest so that state machine can handle it properly.
was:
As fix of 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 task is to wrap IllegalStateException to IOException in
OMSnapshotCreateRequest so that state machine can handle it properly.
> OM is getting stuck on snapshot creation if snapshot chain is corrupted
> -----------------------------------------------------------------------
>
> Key: HDDS-9685
> URL: https://issues.apache.org/jira/browse/HDDS-9685
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Hemant Kumar
> Assignee: Hemant Kumar
> Priority: Major
> Labels: pull-request-available
>
> As fix of 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 task is to handle IllegalStateException properly in
> OMSnapshotCreateRequest so that state machine can handle it properly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]