[
https://issues.apache.org/jira/browse/HDDS-6923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Soumitra Sulav updated HDDS-6923:
---------------------------------
Description:
Below behavior is seen with LEGACY layout type.
Directory is created via FS API and on trying to delete this via Ozone API it's
unable to delete the key, even though the list works as expected.
{code:java}
[root@quasar-dsaqtf-1 ~]# ozone sh bucket info vol/buck-leg | jq '.bucketLayout'
"LEGACY"
[root@quasar-dsaqtf-1 ~]# ozone fs -mkdir o3fs://buck-leg.vol.ozone1/dir1
[root@quasar-dsaqtf-1 ~]# ozone sh key list o3://ozone1/vol/buck-leg
[ {
"volumeName" : "vol",
"bucketName" : "buck-leg",
"name" : "dir1/",
"dataSize" : 0,
"creationTime" : "2022-06-19T18:35:39.520Z",
"modificationTime" : "2022-06-19T18:35:39.520Z",
"replicationConfig" : {
"replicationFactor" : "THREE",
"requiredNodes" : 3,
"replicationType" : "RATIS"
}
} ]
[root@quasar-dsaqtf-1 ~]# ozone sh key delete o3://ozone1/vol/buck-leg/dir1/
KEY_NOT_FOUND Key not found
[root@quasar-dsaqtf-1 ~]#
{code}
was:
Below behavior is seen with both LEGACY and FILE_SYSTEM_OPTIMIZED layout types.
Directory is created via FS API and on trying to delete this via Ozone API its
unable to delete the key, even though the list works as expected.
{code:java}
[root@quasar-dsaqtf-1 ~]# ozone sh bucket create vol1/buck-fso -l
FILE_SYSTEM_OPTIMIZED
22/06/18 12:05:09 INFO rpc.RpcClient: Creating Bucket: vol1/buck-fso, with the
Bucket Layout FILE_SYSTEM_OPTIMIZED, systest as owner, Versioning false,
Storage Type set to DISK and Encryption set to false
[root@quasar-dsaqtf-1 ~]# ozone fs -mkdir o3fs://buck-fso.vol1.ozone1/dir1
[root@quasar-dsaqtf-1 ~]# ozone sh key list o3://ozone1/vol1/buck-fso
[ {
"volumeName" : "vol1",
"bucketName" : "buck-fso",
"name" : "dir1/",
"dataSize" : 0,
"creationTime" : "2022-06-18T12:05:23.971Z",
"modificationTime" : "2022-06-18T12:05:23.971Z",
"replicationConfig" : {
"replicationFactor" : "ONE",
"requiredNodes" : 1,
"replicationType" : "RATIS"
}
} ]
[root@quasar-dsaqtf-1 ~]# ozone sh key delete o3://ozone1/vol1/buck1/dir1/
KEY_NOT_FOUND Key not found
[root@quasar-dsaqtf-1 ~]# ozone sh key delete o3://ozone1/vol1/buck1/dir1
KEY_NOT_FOUND Key not found
{code}
As per recent changes around prefix support each directory is an entry in the
DIRTABLE RocksDB.
> KEY_NOT_FOUND on deleting a key via Ozone Cli
> ---------------------------------------------
>
> Key: HDDS-6923
> URL: https://issues.apache.org/jira/browse/HDDS-6923
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone CLI
> Affects Versions: 1.3.0
> Reporter: Soumitra Sulav
> Priority: Major
>
> Below behavior is seen with LEGACY layout type.
> Directory is created via FS API and on trying to delete this via Ozone API
> it's unable to delete the key, even though the list works as expected.
> {code:java}
> [root@quasar-dsaqtf-1 ~]# ozone sh bucket info vol/buck-leg | jq
> '.bucketLayout'
> "LEGACY"
> [root@quasar-dsaqtf-1 ~]# ozone fs -mkdir o3fs://buck-leg.vol.ozone1/dir1
> [root@quasar-dsaqtf-1 ~]# ozone sh key list o3://ozone1/vol/buck-leg
> [ {
> "volumeName" : "vol",
> "bucketName" : "buck-leg",
> "name" : "dir1/",
> "dataSize" : 0,
> "creationTime" : "2022-06-19T18:35:39.520Z",
> "modificationTime" : "2022-06-19T18:35:39.520Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> }
> } ]
> [root@quasar-dsaqtf-1 ~]# ozone sh key delete o3://ozone1/vol/buck-leg/dir1/
> KEY_NOT_FOUND Key not found
> [root@quasar-dsaqtf-1 ~]#
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]