Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 54092 invoked from network); 9 Jul 2008 20:41:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2008 20:41:53 -0000 Received: (qmail 16527 invoked by uid 500); 9 Jul 2008 20:41:53 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 16437 invoked by uid 500); 9 Jul 2008 20:41:53 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 16300 invoked by uid 99); 9 Jul 2008 20:41:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 13:41:52 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 20:41:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C67D6234C163 for ; Wed, 9 Jul 2008 13:41:31 -0700 (PDT) Message-ID: <228295929.1215636091812.JavaMail.jira@brutus> Date: Wed, 9 Jul 2008 13:41:31 -0700 (PDT) From: "Izaak Rubin (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Issue Comment Edited: (HBASE-732) shell formatting error with the describe command In-Reply-To: <817365155.1215561871664.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12612267#action_12612267 ] irubin edited comment on HBASE-732 at 7/9/08 1:41 PM: ----------------------------------------------------------- I've attached a patch (see above hbase-732.patch). It fixes the problem of repeating text in the output of the describe command. The problem was not specific to the describe command, but rather to any long string that was passed through the split() method in bin/Formatter.rb. The split() method uses Ruby's String.splice() method, which can take 2 arguments meant to signify a starting position and a length of the substring. There was confusion as to whether the second argument should be the length of the substring or the ending position of the substring. I've also added some additional tests to bin/Formatter.rb. The tests in bin/Formatter.rb and bin/HBase.rb all passed. Standard HBase tests were not run, as none of the actual Java code was modified. was (Author: irubin): Fixes the problem of repeating text in the output of the describe command. The problem was not specific to the describe command, but rather to any long string that was passed through the split() method in bin/Formatter.rb. The split() method uses Ruby's String.splice() method, which can take 2 arguments meant to signify a starting position and a length of the substring. There was confusion as to whether the second argument should be the length of the substring or the ending position of the substring. I've also added some additional tests to bin/Formatter.rb. The tests in bin/Formatter.rb and bin/HBase.rb all passed. Standard HBase tests were not run, as none of the actual Java code was modified. > shell formatting error with the describe command > ------------------------------------------------ > > Key: HBASE-732 > URL: https://issues.apache.org/jira/browse/HBASE-732 > Project: Hadoop HBase > Issue Type: Bug > Components: documentation, scripts > Reporter: Izaak Rubin > Assignee: Izaak Rubin > Priority: Minor > Attachments: hbase-732.patch > > > The formatting of the output of the shell command "describe" repeats some of the text. The following is an example of the problem: > {code} > hbase(main):001:0> describe 'table2' > NAME => 'table2', FAMILIES => [{NAME => 'fam3', VERSIONS => 3, COMPRESSION => 'NONE', IN_MEMORY => false, BLOC > KCACHE => false, LENGTH => 2147483647, TTL => FOREVER, BLOOMFILTER => NONE}, {NAME => 'fam2', VERSIONS => 6, COMPRESSION => 'NONE', IN_MEMORY => false, BLOCKCACHE => false, LENGTH => 2147483647, TTL => FOREVER, BLOOMFILT > OMPRESSION => 'NONE', IN_MEMORY => false, BLOCKCACHE => false, LENGTH => 2147483647, TTL => FOREVER, BLOOMFILTER => NONE}, {NAME => 'fam1', VERSIONS => 5, COMPRESSION => 'NONE', IN_MEMORY => false, BLOCKCACHE => false, LENGTH => 2147483647, TTL => FOREVER, BLOOMFILTER => NONE}] > ER => NONE}, {NAME => 'fam1', VERSIONS => 5, COMPRESSION => 'NONE', IN_MEMORY => false, BLOCKCACHE => false, LENGTH => 2147483647, TTL => FOREVER, BLOOMFILTER => NONE}] > ENGTH => 2147483647, TTL => FOREVER, BLOOMFILTER => NONE}] > 1 row(s) in 0.2520 seconds > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.