[
https://issues.apache.org/jira/browse/HBASE-18220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051453#comment-16051453
]
ramkrishna.s.vasudevan commented on HBASE-18220:
------------------------------------------------
Actually this area of code is already having loops. Can we do this way then
Under Compactor.java we can create a method that always returns a Scan and we
would set scan.setreadType(ReadType.STREAM).
Let all the impl of different compactions use this Scan and override other
parameters. So that in StoreScanner there is no code change?
> Compaction scanners need not reopen storefile scanners while trying to switch
> over from pread to stream
> -------------------------------------------------------------------------------------------------------
>
> Key: HBASE-18220
> URL: https://issues.apache.org/jira/browse/HBASE-18220
> Project: HBase
> Issue Type: Sub-task
> Components: Compaction
> Affects Versions: 2.0.0, 3.0.0, 2.0.0-alpha-1
> Reporter: ramkrishna.s.vasudevan
> Assignee: ramkrishna.s.vasudevan
> Fix For: 2.0.0, 3.0.0, 2.0.0-alpha-2
>
> Attachments: HBASE-18220.patch
>
>
> We try switch over to stream scanner if we have read more than a certain
> number of bytes. In case of compaction we already have stream based scanners
> only and but on calling shipped() we try to again close and reopen the
> scanners which is unwanted.
> [~Apache9]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)