Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA0FF200C80 for ; Thu, 25 May 2017 18:31:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E8A47160BCA; Thu, 25 May 2017 16:31:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3AD7F160BB4 for ; Thu, 25 May 2017 18:31:09 +0200 (CEST) Received: (qmail 51805 invoked by uid 500); 25 May 2017 16:31:08 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 51794 invoked by uid 99); 25 May 2017 16:31:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2017 16:31:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E1843C0096 for ; Thu, 25 May 2017 16:31:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tjDqDK3XUaYT for ; Thu, 25 May 2017 16:31:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6B89A61067 for ; Thu, 25 May 2017 16:31:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F0332E0D55 for ; Thu, 25 May 2017 16:31:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A42EC21B5C for ; Thu, 25 May 2017 16:31:04 +0000 (UTC) Date: Thu, 25 May 2017 16:31:04 +0000 (UTC) From: "Weiwei Yang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11779) Ozone: KSM: add listBuckets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 25 May 2017 16:31:10 -0000 [ https://issues.apache.org/jira/browse/HDFS-11779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16024972#comment-16024972 ] Weiwei Yang commented on HDFS-11779: ------------------------------------ V1 patch attached, please kindly review. Some notes for reviewers 1. Please read {{TestKeySpaceManager#testListBuckets}} to see how {{listBuckets}} api is used. The volume name is required, rest of arguments are optional. I tried to include as many as combinations when specifying arguments. 2. To be able to query buckets under constrain of {{ListArgs}} arguments, I have created a helper method in {{LevelDBStore}}, which is {code} public List> getRangeKVs(@Nullable byte[] startKey, int count, LevelDBKeyFilter... filters) throws IOException {code} this helps to get a range of entries from DB based on the conditions. It should be able to be reused in other api implementation such as listVolumes, or any other one involves to search a range of keys. I have created a test class to test this api, see {{TestLevelDBStore#testGetRangeKVs}}. Hope this helps. Thanks. > Ozone: KSM: add listBuckets > --------------------------- > > Key: HDFS-11779 > URL: https://issues.apache.org/jira/browse/HDFS-11779 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ozone > Affects Versions: HDFS-7240 > Reporter: Anu Engineer > Assignee: Weiwei Yang > Attachments: HDFS-11779-HDFS-7240.001.patch > > > Lists buckets of a given volume. Similar to listVolumes, paging supported via prevKey, prefix and maxKeys. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org