hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14307) Incorrect use of positional read api in HFileBlock
Date Fri, 11 Sep 2015 11:40:46 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14740624#comment-14740624
] 

Ted Yu commented on HBASE-14307:
--------------------------------

Looks like compilation on branch-1 is broken:
{code}
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(default-testCompile) on project hbase-server: Compilation failure: Compilation failure:
[ERROR] /Users/tyu/1-hbase/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlockPositionalRead.java:[26,49]
error: cannot find symbol
[ERROR] symbol:   class IOTests
[ERROR] location: package org.apache.hadoop.hbase.testclassification
[ERROR] /Users/tyu/1-hbase/hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlockPositionalRead.java:[36,11]
error: cannot find symbol
{code}

> 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
>            Assignee: Chris Nauroth
>             Fix For: 2.0.0, 0.98.15, 1.2.1, 1.0.3, 1.1.3
>
>         Attachments: HBASE-14307.001.master.patch, HBASE-14307.002.master.patch, HBASE-14307.003.patch
>
>
> 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)

Mime
View raw message