phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samarth Jain (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-4012) Disable distributed upsert select when table has global mutable secondary indexes
Date Wed, 12 Jul 2017 06:39:00 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16083521#comment-16083521
] 

Samarth Jain commented on PHOENIX-4012:
---------------------------------------

Turns out we need to disable distributed upsert select completely after PHOENIX-3994. We currently
don't have a way of setting the rpc controller factory in UngroupedAggregateRegionObserver
when the co-processor has to make remote RPCs to write to the remote table. 

I made the attempt of setting our custom RpcControllerFactory in the config. However, that
doesn't work. See below for my attempt and comments: 
{code}
           // We need to create a copy of region's configuration since we don't want any
            // side effect of setting the RpcControllerFactory.
            // FIXME: unfortunately, creating a copy of the co-processor environment config
doesn't copy
            // the zookeeper related configs. As a result, the HTable created using this copied
config
            // is unusable since it isn't able to connect to the zk quorum.
            Configuration conf = new Configuration(env.getConfiguration());
            conf.setClass(RpcControllerFactory.CUSTOM_CONTROLLER_CONF_KEY,
                InterRegionServerIndexRpcControllerFactory.class, RpcControllerFactory.class);
           // FIXME: I am unusable
            targetHTable = new HTable(conf, projectedTable.getPhysicalName().getBytes());
{code}

> Disable distributed upsert select when table has global mutable secondary indexes
> ---------------------------------------------------------------------------------
>
>                 Key: PHOENIX-4012
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4012
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: Samarth Jain
>
> It can be enabled back on when PHOENIX-3995 is fixed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message