You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Hemant Kumar (Jira)" <ji...@apache.org> on 2023/09/05 23:25:00 UTC

[jira] [Comment Edited] (HDDS-9215) Snapshot Chain corruption because snapshot chain need not be created in increasing order of CreatedTime

    [ https://issues.apache.org/jira/browse/HDDS-9215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762230#comment-17762230 ] 

Hemant Kumar edited comment on HDDS-9215 at 9/5/23 11:24 PM:
-------------------------------------------------------------

Merged in [#5223|https://github.com/apache/ozone/pull/5223]


was (Author: JIRAUSER297350):
Merged in #5223

> Snapshot Chain corruption because snapshot chain need not be created in increasing order of CreatedTime
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HDDS-9215
>                 URL: https://issues.apache.org/jira/browse/HDDS-9215
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Swaminathan Balachandran
>            Assignee: Swaminathan Balachandran
>            Priority: Critical
>              Labels: pull-request-available
>
> SnapshotCreateRequest creates snapshotInfo created time in pre-execute phase whose order need not be the same as the ratis log ordering. So 2 consecutive snapshot created in the snapshot info table need not be in increasing order of created time. SnapshotChainManager on om restart tries to load the snapshot in the increasing order of their created time. Thus throws a SnapshotChainCorruption exception in this case as it previous snapshot is not loaded but SnapshotChainManager expects that the previous snapshot be loaded before trying to load the current snapshot.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org