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 370C1200B66 for ; Thu, 18 Aug 2016 08:40:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 35860160AAB; Thu, 18 Aug 2016 06:40:25 +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 A2A2F160AAE for ; Thu, 18 Aug 2016 08:40:24 +0200 (CEST) Received: (qmail 76344 invoked by uid 500); 18 Aug 2016 06:40:21 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 76251 invoked by uid 99); 18 Aug 2016 06:40:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 06:40:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 16C912C02A1 for ; Thu, 18 Aug 2016 06:40:21 +0000 (UTC) Date: Thu, 18 Aug 2016 06:40:21 +0000 (UTC) From: "ramkrishna.s.vasudevan (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-16444) HFileWriterImpl#getSumOfCellKeyElementLengths() should consider KEY_INFRASTRUCTURE_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 06:40:25 -0000 ramkrishna.s.vasudevan created HBASE-16444: ---------------------------------------------- Summary: HFileWriterImpl#getSumOfCellKeyElementLengths() should consider KEY_INFRASTRUCTURE_SIZE Key: HBASE-16444 URL: https://issues.apache.org/jira/browse/HBASE-16444 Project: HBase Issue Type: Bug Reporter: ramkrishna.s.vasudevan Assignee: ramkrishna.s.vasudevan Priority: Minor Currently HFileWriterImpl#getSumOfCellKeyElementLengths() considers {code} return cell.getRowLength() + cell.getFamilyLength() + cell.getQualifierLength() + KeyValue.TIMESTAMP_TYPE_SIZE; {code} It can consider the 2 byte ROWLEN and 1 byte FAMILY_LEN also because with the current way of things we are sure how our key is structured. But pls note that {code} // This will be a low estimate. Will do for now. return getSumOfCellKeyElementLengths(cell); {code} It says clearly it is going to be a low estimate. But in the write path there should be no harm in adding the complete KEY_INFRA_SIZE. -- This message was sent by Atlassian JIRA (v6.3.4#6332)