[
https://issues.apache.org/jira/browse/HDDS-12094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953131#comment-17953131
]
Anastasia Kostryukova commented on HDDS-12094:
----------------------------------------------
Hi [~ptlrs]. Just checked this and it's seen there is no issue. The output
shows *false* for both cases.
The directory was created using:
*ozone fs -mkdir /vol1/bucket1/dir1*
The output:
{code:java}
sh-5.1$ ozone sh key info vol1/bucket1/dir1
{
"volumeName" : "vol1",
"bucketName" : "bucket1",
"name" : "dir1/",
"owner" : "hadoop",
"dataSize" : 0,
"creationTime" : "2025-05-21T11:35:51.187Z",
"modificationTime" : "2025-05-21T11:35:51.187Z",
"replicationConfig" : {
"replicationFactor" : "ONE",
"requiredNodes" : 1,
"minimumNodes" : 1,
"replicationType" : "RATIS"
},
"metadata" : { },
"tags" : { },
"ozoneKeyLocations" : [ ],
"generation" : 5,
"file" : false
}{code}
{code:java}
sh-5.1$ ozone sh key info vol1/bucket1/dir1/
{
"volumeName" : "vol1",
"bucketName" : "bucket1",
"name" : "dir1/",
"owner" : "hadoop",
"dataSize" : 0,
"creationTime" : "2025-05-21T11:35:51.187Z",
"modificationTime" : "2025-05-21T11:35:51.187Z",
"replicationConfig" : {
"replicationFactor" : "ONE",
"requiredNodes" : 1,
"minimumNodes" : 1,
"replicationType" : "RATIS"
},
"metadata" : { },
"tags" : { },
"ozoneKeyLocations" : [ ],
"generation" : 5,
"file" : false
}
{code}
> OzoneKey isFile returns true for directories
> --------------------------------------------
>
> Key: HDDS-12094
> URL: https://issues.apache.org/jira/browse/HDDS-12094
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Rishabh Patel
> Assignee: Anastasia Kostryukova
> Priority: Major
> Labels: pull-request-available
>
> Running {{OzoneKey isFile()}} on the directory returns {{{}true{}}}.
> For the directory {{{}ockrwvolume/ockrwbucket/rmp{}}}:
> {code:java}
> bash-5.1$ ozone sh key info /ockrwvolume/ockrwbucket/rmp/
> {
> "volumeName" : "ockrwvolume",
> "bucketName" : "ockrwbucket",
> "name" : "rmp/",
> "owner" : "hadoop",
> "dataSize" : 0,
> "creationTime" : "2025-01-16T22:21:15.224Z",
> "modificationTime" : "2025-01-16T22:21:15.224Z",
> "replicationConfig" : {
> "replicationFactor" : "ONE",
> "requiredNodes" : 1,
> "minimumNodes" : 1,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "tags" : { },
> "ozoneKeyLocations" : [ ],
> "generation" : 5,
> "file" : 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]