[
https://issues.apache.org/jira/browse/HBASE-16267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Yu updated HBASE-16267:
---------------------------
Attachment: 16267.v8.txt
Patch v8 makes the body field of Response lazily populated.
Otherwise we get:
{code}
testSimpleScannerProtobuf(org.apache.hadoop.hbase.rest.TestTableScan) Time
elapsed: 1.674 sec <<< ERROR!
java.io.IOException: Attempted read from closed stream.
at
org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:179)
at
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
at java.io.DataInputStream.read(DataInputStream.java:100)
at
org.apache.hadoop.hbase.rest.TestTableScan.readProtobufStream(TestTableScan.java:429)
at
org.apache.hadoop.hbase.rest.TestTableScan.testSimpleScannerProtobuf(TestTableScan.java:389)
{code}
> Remove commons-httpclient dependency from hbase-rest module
> -----------------------------------------------------------
>
> Key: HBASE-16267
> URL: https://issues.apache.org/jira/browse/HBASE-16267
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
> Fix For: 2.0.0
>
> Attachments: 16267.v2.txt, 16267.v4.txt, 16267.v6.txt, 16267.v8.txt
>
>
> hbase-rest module still has imports from org.apache.commons.httpclient .
> There is more work to be done after HBASE-15767 was integrated.
> In master branch, there seems to be transitive dependency which allows the
> code to compile:
> {code}
> [INFO] +- org.apache.hadoop:hadoop-common:jar:2.7.1:compile
> [INFO] | +- org.apache.hadoop:hadoop-annotations:jar:2.7.1:compile
> [INFO] | +- commons-cli:commons-cli:jar:1.2:compile
> [INFO] | +- org.apache.commons:commons-math3:jar:3.1.1:compile
> [INFO] | +- xmlenc:xmlenc:jar:0.52:compile
> [INFO] | +- commons-httpclient:commons-httpclient:jar:3.1:compile
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)