You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2020/12/03 10:31:00 UTC
[jira] [Created] (HDDS-4543) Failed to list keys when there are two
bucket names with same prefix
Sammi Chen created HDDS-4543:
--------------------------------
Summary: 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
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