You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Devesh Kumar Singh (Jira)" <ji...@apache.org> on 2022/10/18 03:50:00 UTC

[jira] [Commented] (HDDS-7348) Is Directory issue

    [ https://issues.apache.org/jira/browse/HDDS-7348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17619218#comment-17619218 ] 

Devesh Kumar Singh commented on HDDS-7348:
------------------------------------------

h2. Analysis:

Customer is not able to run “-ls” command for one of the directory as shown below:

 

emhaain@bicobsdpapp29:~ $ ozone fs -ls ofs://<id>/prod/data/archive/transactions/digi_core_tdr

ls: ID *#180576*

Getting the above output which is a container ID and is thrown in code when the container is not found at SCM side. During the “-ls” command , the listStatus method is calling “refreshPipeline” method which makes an RPC call to SCM for containers holding the key related data. 

 

In cluster OM rocksDB, the above key entry is found in keyTable with associated containerID:{*}180576{*}. But the said container ID is not found in SCM rocksDB.

 

emhaain@bicobsdpapp29:~/cloudera-gandhi $ ozone sh bucket info prod/data

{

  "metadata" : \{ },

  "volumeName" : "prod",

  "name" : "data",

  "storageType" : "DISK",

  "versioning" : false,

  "usedBytes" : 5234973396553728,

  "usedNamespace" : 2899796,

  "creationTime" : "2021-03-19T02:34:58.471Z",

  "modificationTime" : "2021-03-19T02:34:58.471Z",

  "quotaInBytes" : -2,

  "quotaInNamespace" : -2

}

 

emhaain@bicobsdpapp29:~/cloudera-gandhi $ ozone sh bucket info prod/data/archive/transactions/digi_core_tdr

Invalid value for positional parameter at index 0 (<value>): cannot convert 'prod/data/archive/transactions/digi_core_tdr' to OzoneAddress (org.apache.hadoop.ozone.client.OzoneClientException: Invalid bucket name. Delimiters (/) not allowed in bucket name)

Usage: ozone sh bucket info [-hV] <value>

returns information about a bucket

      <value>     URI of the volume/bucket.

                  Ozone URI could start with o3:// or without prefix. URI may

                    contain the host/serviceId and port of the OM server. Both

                    are optional. If they are not specified it will be

                    identified from the config files.

  -h, --help      Show this help message and exit.

  -V, --version   Print version information and exit.

> Is Directory issue
> ------------------
>
>                 Key: HDDS-7348
>                 URL: https://issues.apache.org/jira/browse/HDDS-7348
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Devesh Kumar Singh
>            Assignee: Devesh Kumar Singh
>            Priority: Major
>
> $ ozone fs -ls ofs://<cluster_instance>/prod/data/archive/transactions/digi_core_tdr/
> ls: ID #180576
> however, when i specify the subfolder it works
> $ ozone fs -ls ofs://<cluster_instance>/prod/data/archive/transactions/digi_core_tdr/20220102
> Found 618 items
> -rw-rw-rw- 3 bi_nifi bi_nifi 122542 2022-01-02 00:30 ofs://<cluster_instance>/prod/data/archive/transactions/digi_core_tdr/20220102/10376710_BOM1001_domtdr.20220101-23
> -rw-rw-rw- 3 bi_nifi bi_nifi 3768 2022-01-02 04:18 ofs://<cluster_instance>/prod/data/archive/transactions/digi_core_tdr/20220102/10376710_BOM1001_domtdr.20220102-03
> -rw-rw-rw- 3 bi_nifi bi_nifi 121404 2022-01-02 06:29 ofs://<cluster_instance>/prod/data/archive/transactions/digi_core_tdr/20220102/10376710_BOM1001_domtdr.20220102-05
> h4.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org