Chung En Lee created HDDS-11954:
-----------------------------------

             Summary: list keys command gets wrong info
                 Key: HDDS-11954
                 URL: https://issues.apache.org/jira/browse/HDDS-11954
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Chung En Lee
            Assignee: Chung En Lee


list keys command gets wrong info for diretory in fso bucket. "file" should be 
false.

Steps to reproduce:
 # ozone sh vol create /vol1
 # ozone sh bucket create --layout=FILE_SYSTEM_OPTIMIZED /vol1/bucket1
 # ozone fs -mkdir /vol1/bucket1
 # ozone fs -mkdir /vol1/bucket1/dir1/dir2
 # ozone sh key ls /vol1/bucket1

 
{code:java}
[ {
  "volumeName" : "vol1",
  "bucketName" : "bucket1",
  "name" : "dir1/",
  "owner" : "hadoop",
  "dataSize" : 0,
  "creationTime" : "2024-12-17T16:34:10.776Z",
  "modificationTime" : "2024-12-17T16:34:10.776Z",
  "replicationConfig" : {
    "replicationFactor" : "ONE",
    "requiredNodes" : 1,
    "minimumNodes" : 1,
    "replicationType" : "RATIS"
  },
  "metadata" : { },
  "tags" : { },
  "file" : true    // should be false
}, {
  "volumeName" : "vol1",
  "bucketName" : "bucket1",
  "name" : "dir1/dir2/",
  "owner" : "hadoop",
  "dataSize" : 0,
  "creationTime" : "2024-12-17T16:34:18.936Z",
  "modificationTime" : "2024-12-17T16:34:18.936Z",
  "replicationConfig" : {
    "replicationFactor" : "ONE",
    "requiredNodes" : 1,
    "minimumNodes" : 1,
    "replicationType" : "RATIS"
  },
  "metadata" : { },
  "tags" : { },
  "file" : true    //should be false
 } ] {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