[
https://issues.apache.org/jira/browse/HDDS-8870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17736326#comment-17736326
]
Prashant Pogde commented on HDDS-8870:
--------------------------------------
This is expected. Snapshot ls and snapshot diff are passive commands that do
not modify the snapshot state of the system. I will resolved this.
> [snapshot] Snapshot 'ls' and 'snapshotDiff' commands are still working when
> ozone.filesystem.snapshot.enabled is set to false
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: HDDS-8870
> URL: https://issues.apache.org/jira/browse/HDDS-8870
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Manager
> Reporter: Jyotirmoy Sinha
> Priority: Major
> Labels: ozone-snapshot
>
> Steps :
> # Create volume, bucket, key and take snapshot
> # Set ozone.filesystem.snapshot.enabled=false in cluster, and restart/deploy
> client config.
> # Create/delete snapshots are failing due to snapshot not enabled
> {code:java}
> [root@jssnap-1 ~]# ozone sh snapshot create vol1/buck1 snap4
> FEATURE_NOT_ENABLED Operation OMSnapshotCreateRequest.preExecute(..) cannot
> be invoked because Ozone snapshot feature is disabled.
> [root@jssnap-1 ~]# ozone sh snapshot delete vol1/buck1 snap3
> FEATURE_NOT_ENABLED Operation OMSnapshotDeleteRequest.preExecute(..) cannot
> be invoked because Ozone snapshot feature is disabled.
> [root@jssnap-1 ~]# ozone sh snapshot snapshotDiff vol1/buck1 snap1 snap3
> [root@jssnap-1 ~]# ozone fs -createSnapshot ofs://ozone1/vol1/buck1 snap4
> createSnapshot: Operation OMSnapshotCreateRequest.preExecute(..) cannot be
> invoked because Ozone snapshot feature is disabled. {code}
> # Snapshot ls and snapshotDiff commands are still working
> {code:java}
> [root@jssnap-1 ~]# ozone sh snapshot ls vol1/buck1
> [ {
> "volumeName" : "vol1",
> "bucketName" : "buck1",
> "name" : "snap1",
> "creationTime" : 1686824336078,
> "snapshotStatus" : "SNAPSHOT_ACTIVE",
> "snapshotID" : "df4ab9d7-87cb-448c-b946-e4e586310b11",
> "snapshotPath" : "vol1/buck1",
> "checkpointDir" : "-df4ab9d7-87cb-448c-b946-e4e586310b11"
> }, {
> "volumeName" : "vol1",
> "bucketName" : "buck1",
> "name" : "snap2",
> "creationTime" : 1686824493517,
> "snapshotStatus" : "SNAPSHOT_ACTIVE",
> "snapshotID" : "1378595c-2050-40bb-aa0a-0831a9f8f34d",
> "snapshotPath" : "vol1/buck1",
> "checkpointDir" : "-1378595c-2050-40bb-aa0a-0831a9f8f34d"
> }, {
> "volumeName" : "vol1",
> "bucketName" : "buck1",
> "name" : "snap3",
> "creationTime" : 1686863806909,
> "snapshotStatus" : "SNAPSHOT_ACTIVE",
> "snapshotID" : "422b18c2-5bdb-4c42-8592-5e36f9438692",
> "snapshotPath" : "vol1/buck1",
> "checkpointDir" : "-422b18c2-5bdb-4c42-8592-5e36f9438692"
> } ]
> [root@jssnap-1 ~]# ozone sh snapshot snapshotDiff vol1/buck1 snap1 snap3
> Snapshot diff job is IN_PROGRESS
> Please retry after 60000 ms.
> [root@jssnap-1 ~]# ozone sh snapshot snapshotDiff vol1/buck1 snap1 snap3
> Difference between snapshot: snap1 and snapshot: snap3
> + ./key2 {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]