[ 
https://issues.apache.org/jira/browse/HDDS-9119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Siyao Meng resolved HDDS-9119.
------------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed

> Fix LDB Cli for Ozone Snapshot DB
> ---------------------------------
>
>                 Key: HDDS-9119
>                 URL: https://issues.apache.org/jira/browse/HDDS-9119
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Sadanand Shenoy
>            Assignee: Sadanand Shenoy
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> DBScanner doesn't currently work when provided with a snapshot DB path. 
>  
> {code:java}
> [root@test-repro-1 ~]# ozone sh snapshot create vol1/buck1 snap1
> [root@test-repro-1 ~]# ozone sh snapshot ls vol1/buck1
> [ {
>   "volumeName" : "vol1",
>   "bucketName" : "buck1",
>   "name" : "snap1",
>   "creationTime" : 1691422085042,
>   "snapshotStatus" : "SNAPSHOT_ACTIVE",
>   "snapshotId" : "ac500499-bb62-48c6-bb02-81d1fa0e5328",
>   "snapshotPath" : "vol1/buck1",
>   "checkpointDir" : "-ac500499-bb62-48c6-bb02-81d1fa0e5328"
> } ]
> [root@test-repro-1 ~]# ozone debug ldb 
> --db=/var/lib/hadoop-ozone/om/data/db.snapshots/checkpointState/om.db-ac500499-bb62-48c6-bb02-81d1fa0e5328/
>  scan --column_family=keyTable
> 23/08/07 15:31:19 INFO helpers.OmKeyInfo: OmKeyInfo.getCodec ignorePipeline = 
> true
> 23/08/07 15:31:19 INFO helpers.OmKeyInfo: OmKeyInfo.getCodec ignorePipeline = 
> true
> 23/08/07 15:31:19 INFO helpers.OmKeyInfo: OmKeyInfo.getCodec ignorePipeline = 
> true
> 23/08/07 15:31:19 INFO helpers.OmKeyInfo: OmKeyInfo.getCodec ignorePipeline = 
> true
> 23/08/07 15:31:19 INFO helpers.OmKeyInfo: OmKeyInfo.getCodec ignorePipeline = 
> true
> Error: Incorrect DB Path
> Exit code is non-zero. Check the error message above{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]

Reply via email to