You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2020/12/04 05:12:00 UTC

[jira] [Resolved] (HDDS-4543) Failed to list keys when there are two bucket names with same prefix

     [ https://issues.apache.org/jira/browse/HDDS-4543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bharat Viswanadham resolved HDDS-4543.
--------------------------------------
    Fix Version/s: 1.1.0
       Resolution: Fixed

> Failed to list keys when there are two bucket names with same prefix
> --------------------------------------------------------------------
>
>                 Key: HDDS-4543
>                 URL: https://issues.apache.org/jira/browse/HDDS-4543
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Sammi Chen
>            Assignee: Sammi Chen
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.1.0
>
>
> For example,  we have bucket named "hadoop" and another bucket named "hadoop-ozone".  It will return empty key list when we execute "sh key list /s3v/hadoop" command. 
>  "hadoop-ozone" and "hadoop" share the same prefix "hadoop".  
> There is a bug in listKeys implementation which failes to append "/" to seekKey when prefix is null.  Since "-" is ahead of "/" in order, so no key is returned in the listKeys.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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