Soumitra Sulav created HDDS-6923:
------------------------------------

             Summary: 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


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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to