Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8DEBC503 for ; Fri, 1 Jun 2012 20:03:23 +0000 (UTC) Received: (qmail 66089 invoked by uid 500); 1 Jun 2012 20:03:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 66044 invoked by uid 500); 1 Jun 2012 20:03:23 -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 66033 invoked by uid 99); 1 Jun 2012 20:03:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 20:03:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 70FA214285F for ; Fri, 1 Jun 2012 20:03:23 +0000 (UTC) Date: Fri, 1 Jun 2012 20:03:23 +0000 (UTC) From: "smv1@hotmail.com (JIRA)" To: issues@hbase.apache.org Message-ID: <768797173.28008.1338581003464.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1354356596.65140.1327274559923.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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 [ https://issues.apache.org/jira/browse/HBASE-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287631#comment-13287631 ] smv1@hotmail.com commented on HBASE-5251: ----------------------------------------- I am working on fixing this issue. Will have a patch soon. > 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 > Assignee: Himanshu Vashishtha > Priority: Minor > Labels: noob > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira