Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 001C018ED0 for ; Tue, 25 Aug 2015 17:22:46 +0000 (UTC) Received: (qmail 18871 invoked by uid 500); 25 Aug 2015 17:22:45 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 18676 invoked by uid 500); 25 Aug 2015 17:22:45 -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 18475 invoked by uid 99); 25 Aug 2015 17:22:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Aug 2015 17:22:45 +0000 Date: Tue, 25 Aug 2015 17:22:45 +0000 (UTC) From: "Shradha Revankar (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-14307) Incorrect use of positional read api in HFileBlock MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Shradha Revankar created HBASE-14307: ---------------------------------------- Summary: Incorrect use of positional read api in HFileBlock Key: HBASE-14307 URL: https://issues.apache.org/jira/browse/HBASE-14307 Project: HBase Issue Type: Bug Reporter: Shradha Revankar Priority: Minor Considering that {{read() }} is not guaranteed to read all bytes, I'm interested to understand this particular piece of code and why is partial read treated as an error : https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java#L1446-L1450 Particularly, if hbase were to use a different filesystem, say WebhdfsFileSystem, this would not work, please also see https://issues.apache.org/jira/browse/HDFS-8943 for discussion around this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)