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 84DBBF831 for ; Thu, 4 Apr 2013 16:13:22 +0000 (UTC) Received: (qmail 13104 invoked by uid 500); 4 Apr 2013 16:13:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 12560 invoked by uid 500); 4 Apr 2013 16:13:18 -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 11932 invoked by uid 99); 4 Apr 2013 16:13:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Apr 2013 16:13:17 +0000 Date: Thu, 4 Apr 2013 16:13:17 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-8231) delete tests in table_tests.rb(TestShell) always running on empty table. 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-8231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-8231: ------------------------- Attachment: 8231.094.txt Reverted from 0.94. Here is what I'd applied (and then reverted) > delete tests in table_tests.rb(TestShell) always running on empty table. > ------------------------------------------------------------------------ > > Key: HBASE-8231 > URL: https://issues.apache.org/jira/browse/HBASE-8231 > Project: HBase > Issue Type: Bug > Components: scripts > Affects Versions: 0.95.0, 0.94.6 > Reporter: rajeshbabu > Assignee: rajeshbabu > Fix For: 0.95.1, 0.94.7 > > Attachments: 8231.094.txt, HBASE-8231.patch > > > In ruby,tests within the same test class are invoked in alphabetical order,so delete test cases are running on a table before adding any entry. > TestShell logs showing "Row not found" for each delete test everytime. > {code} > ERROR: Row Not Found > Here is some help for this command: > Delete all cells in a given row; pass a table name, row, and optionally > a column and timestamp. Examples: > hbase> deleteall 't1', 'r1' > hbase> deleteall 't1', 'r1', 'c1' > hbase> deleteall 't1', 'r1', 'c1', ts1 > The same commands also can be run on a table reference. Suppose you had a reference > t to table 't1', the corresponding command would be: > hbase> t.deleteall 'r1' > hbase> t.deleteall 'r1', 'c1' > hbase> t.deleteall 'r1', 'c1', ts1 > {code} > Before deleting a row we are checking whether the row is present or not. > {code} > def _deleteall_internal(row, column = nil, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP) > raise ArgumentError, "Row Not Found" if _get_internal(row).nil? > {code} > Need to improve delete tests in table_tests.rb. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira