[
https://issues.apache.org/jira/browse/HBASE-7712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13565977#comment-13565977
]
Ted Yu commented on HBASE-7712:
-------------------------------
In RegionCoprocessorHost#preCompact():
{code}
try {
scanner = ((RegionObserver)env.getInstance()).preCompact(
ctx, store, scanner, scanType);
} catch (Throwable e) {
{code}
We can try calling preCompact() with scanType parameter. If exception is thrown
telling us the method is absent, we can call preCompact() without scanType.
However, this is not efficient.
RegionObserver is stateless. So I don't see a way of remembering whether the
particular RegionObserver implements preCompact() with scanType.
> Pass ScanType into preCompact()
> -------------------------------
>
> Key: HBASE-7712
> URL: https://issues.apache.org/jira/browse/HBASE-7712
> Project: HBase
> Issue Type: Task
> Reporter: Ted Yu
> Assignee: Ted Yu
> Fix For: 0.96.0
>
> Attachments: 7712-v1.txt
>
>
> See related discussion:
> http://search-hadoop.com/m/a7BYc2RITZ22/Getting+the+scan+type+at+preCompact&subj=Re+Getting+the+scan+type+at+preCompact
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira