Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@locus.apache.org Received: (qmail 47109 invoked from network); 25 Sep 2008 17:22:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2008 17:22:05 -0000 Received: (qmail 88585 invoked by uid 500); 25 Sep 2008 17:22:03 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 88570 invoked by uid 500); 25 Sep 2008 17:22:02 -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 88558 invoked by uid 99); 25 Sep 2008 17:22:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 10:22:02 -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; Thu, 25 Sep 2008 17:21:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4B9C5234C1F8 for ; Thu, 25 Sep 2008 10:21:44 -0700 (PDT) Message-ID: <1420237168.1222363304308.JavaMail.jira@brutus> Date: Thu, 25 Sep 2008 10:21:44 -0700 (PDT) From: "Jim Kellerman (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Commented: (HBASE-901) Add a limit to key length, check key and value length on client side. In-Reply-To: <466380840.1222362224342.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-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634552#action_12634552 ] Jim Kellerman commented on HBASE-901: ------------------------------------- Jean-Daniel points out that we still need to get to the HTableDescriptor, because even if key lengths have a fixed maximum, value lengths are configurable. > Add a limit to key length, check key and value length on client side. > --------------------------------------------------------------------- > > Key: HBASE-901 > URL: https://issues.apache.org/jira/browse/HBASE-901 > Project: Hadoop HBase > Issue Type: Improvement > Components: client > Reporter: Jim Kellerman > Assignee: Jean-Daniel Cryans > Priority: Blocker > Fix For: 0.19.0 > > > Currently there is no limit on key length and there should be. It should be a parameter in HTableDescriptor since the row key length needs to be considered in addition to the column key. > It should be trivial to add, since HTD can be upgraded without requiring a migration. > Checking of the key length (and the value length) should be done on the client side as it will fail early rather than once the request is sent to the server. > This means that a BatchUpdate needs a reference to either the HTable or to the HTD. It can be a transient reference so that the HTable (or HTD) need not be serialized/deserialized. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.