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 906D3200C2B for ; Thu, 2 Mar 2017 18:14:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8EF2B160B6F; Thu, 2 Mar 2017 17:14:51 +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 D67D9160B6A for ; Thu, 2 Mar 2017 18:14:50 +0100 (CET) Received: (qmail 8783 invoked by uid 500); 2 Mar 2017 17:14:50 -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 8771 invoked by uid 99); 2 Mar 2017 17:14:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2017 17:14:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 70E0DC0364 for ; Thu, 2 Mar 2017 17:14:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fR0VepFuw_ie for ; Thu, 2 Mar 2017 17:14:48 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3E5E65F23D for ; Thu, 2 Mar 2017 17:14:48 +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 A453FE05F7 for ; Thu, 2 Mar 2017 17:14:45 +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 5A6852415C for ; Thu, 2 Mar 2017 17:14:45 +0000 (UTC) Date: Thu, 2 Mar 2017 17:14:45 +0000 (UTC) From: "Sean Busbey (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-5251) Some commands return "0 rows" when > 0 rows were processed successfully MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Mar 2017 17:14:51 -0000 [ https://issues.apache.org/jira/browse/HBASE-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Busbey updated HBASE-5251: ------------------------------- Assignee: (was: Sameer Vaishampayan) Status: In Progress (was: Patch Available) Moving this out of patch available and unassigning. If anyone wants to pick this up, please do! > Some commands return "0 rows" when > 0 rows were processed successfully > ----------------------------------------------------------------------- > > Key: HBASE-5251 > URL: https://issues.apache.org/jira/browse/HBASE-5251 > Project: HBase > Issue Type: Bug > Components: shell > Affects Versions: 0.90.5 > Reporter: David S. Wang > Priority: Minor > Labels: beginner > Attachments: patch7.diff, patch8.diff, patch9.diff > > > From the hbase shell, I see this: > hbase(main):049:0> scan 't1' > ROW COLUMN+CELL > r1 column=f1:c1, timestamp=1327104295560, value=value > r1 column=f1:c2, timestamp=1327104330625, value=value > 1 row(s) in 0.0300 seconds > hbase(main):050:0> deleteall 't1', 'r1' > 0 row(s) in 0.0080 seconds <====== I expected this to read "2 row(s)" > hbase(main):051:0> scan 't1' > ROW COLUMN+CELL > 0 row(s) in 0.0090 seconds > I expected the deleteall command to return "1 row(s)" instead of 0, because 1 row was deleted. Similar behavior for delete and some other commands. Some commands such as "put" work fine. > Looking at the ruby shell code, it seems that formatter.footer() is called even for commands that will not actually increment the number of rows reported, such as deletes. Perhaps there should be another similar function to formatter.footer(), but that will not print out @row_count. -- This message was sent by Atlassian JIRA (v6.3.15#6346)