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 5A8D3200C28 for ; Mon, 13 Mar 2017 22:55:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5926D160B85; Mon, 13 Mar 2017 21:55:46 +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 759B2160B6C for ; Mon, 13 Mar 2017 22:55:45 +0100 (CET) Received: (qmail 69565 invoked by uid 500); 13 Mar 2017 21:55:44 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 69553 invoked by uid 99); 13 Mar 2017 21:55:44 -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; Mon, 13 Mar 2017 21:55:44 +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 F1348C0118 for ; Mon, 13 Mar 2017 21:55:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] 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 QLfLflisR1o6 for ; Mon, 13 Mar 2017 21:55:43 +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 D3C525FC06 for ; Mon, 13 Mar 2017 21:55:42 +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 0BE69E04FE for ; Mon, 13 Mar 2017 21:55:42 +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 B4596243A8 for ; Mon, 13 Mar 2017 21:55:41 +0000 (UTC) Date: Mon, 13 Mar 2017 21:55:41 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17771) [C++] Classes required for implementation of BatchCallerBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 13 Mar 2017 21:55:46 -0000 [ https://issues.apache.org/jira/browse/HBASE-17771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15923033#comment-15923033 ] Enis Soztutar commented on HBASE-17771: --------------------------------------- - Changes in {{core/BUCK}} undos the previous changes from HBASE-17728. This is probably due to rebasing, but we need HBASE-17728. - {{Action::OriginalIndex()}} should be named {{Action::original_index()}} and {{Action::GetAction()}} should be {{Action::action()}}. Maybe in the other classes as well (my reading of the conventions is that if the class method is an accessor to a class field, you can name it like foo_bar(), instead of FooBar(). - Class {{MultiAction}} is not needed?. Seems to be coming from the AsyncProcess based impl. I've checked the patch at HBASE-17576, not used there as well. - Remove commented out code: {code} + /*static std::shared_ptr GetResults(const std::shared_ptr& req, + std::unique_ptr resp);*/ The non-commented out version takes Request by raw-pointer which is probably not what we want. {code} - The CellScanner::Advance() might return false as well for the below code: {code} - while (cell_scanner->Advance()) { + int num_cells = 0; + while (num_cells != result.associated_cell_count()) { + cell_scanner->Advance(); {code} So, I think you should check for that, and throw an exception if we wanted to read that many cells, but the CellScanner::Advance() is returning false. - Are you gonna address this? {{+// TODO Revisit this class once}} - RegionRequest::ActionList is a shared_ptr, while ServerRequest::ActionsByRegion is not. I think you don't need the shared_ptr in RegionRequest::ActionList, especially because you are returning via {{const &}}. - RequestConverter::ToGet() is good, but it is duplicating the code. Maybe make it so that ToGetRequest() uses that. > [C++] Classes required for implementation of BatchCallerBuilder > --------------------------------------------------------------- > > Key: HBASE-17771 > URL: https://issues.apache.org/jira/browse/HBASE-17771 > Project: HBase > Issue Type: Sub-task > Reporter: Sudeep Sunthankar > Assignee: Sudeep Sunthankar > Fix For: HBASE-14850 > > Attachments: HBASE-17771.HBASE-14850.v1.patch > > > Separating depedencies of BatchCallerBuilder. -- This message was sent by Atlassian JIRA (v6.3.15#6346)