[
https://issues.apache.org/jira/browse/HBASE-12031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146879#comment-14146879
]
Ted Yu commented on HBASE-12031:
--------------------------------
{code}
+ int ret = istream.read(fileOffset, dest, destOffset,
+ size + extraSize);
+ if (ret < size) {
+ throw new IOException("Positional read of "
+ + size + " bytes "
+ + "failed at offset " + fileOffset
+ + " (returned " + ret + ")");
+ }
{code}
The above snippet is repeated four times. Maybe put the above in a method ?
> Parallel Scanners inside Region
> -------------------------------
>
> Key: HBASE-12031
> URL: https://issues.apache.org/jira/browse/HBASE-12031
> Project: HBase
> Issue Type: New Feature
> Components: Performance, Scanners
> Affects Versions: 0.98.6
> Reporter: Vladimir Rodionov
> Assignee: Vladimir Rodionov
> Fix For: 1.0.0, 2.0.0, 0.98.7, 0.99.1
>
> Attachments: HBASE-12031.2.patch, HBASE-12031.3.patch,
> HBASE-12031.patch, ParallelScannerDesign.pdf, hbase-12031-tests.tar.gz
>
>
> This JIRA to improve performance of multiple scanners running on a same
> region in parallel. The scenarios where we will get the performance benefits:
> * New TableInputFormat with input splits smaller than HBase Region.
> * Scanning during compaction (Compaction scanner and application scanner over
> the same Region).
> Some JIRAs related to this one:
> https://issues.apache.org/jira/browse/HBASE-7336
> https://issues.apache.org/jira/browse/HBASE-5979
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)