[
https://issues.apache.org/jira/browse/PHOENIX-1166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14097381#comment-14097381
]
Jesse Yates commented on PHOENIX-1166:
--------------------------------------
In HBase's CoprocessorHost, there is the following code:
{quote}
@Override
public HTableInterface getTable(TableName tableName, ExecutorService pool)
throws IOException {
return new HTableWrapper(tableName,
CoprocessorHConnection.getConnectionForEnvironment(this),
pool);
}
{quote}
Which uses a CoprocessorHConnection to get a 'backdoor' connection to the
region if it is present on the local server. It avoids
serializing/deserializing the data and writes directly to the region. I'm not
sure why you need to do any of these changes at all.
> Avoid HTable creation in coprocessors to write into local index table
> ---------------------------------------------------------------------
>
> Key: PHOENIX-1166
> URL: https://issues.apache.org/jira/browse/PHOENIX-1166
> Project: Phoenix
> Issue Type: Bug
> Reporter: rajeshbabu
> Assignee: rajeshbabu
> Fix For: 5.0.0, 4.1
>
> Attachments: PHOENIX-1166.patch
>
>
> Since data table regions and local index regions colocated, we can get index
> region directly from RS online regions and write to it.
--
This message was sent by Atlassian JIRA
(v6.2#6252)