[
https://issues.apache.org/jira/browse/PHOENIX-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15340567#comment-15340567
]
Samarth Jain commented on PHOENIX-3002:
---------------------------------------
UpgradeUtil is generally the place where we keep upgrade related code. (I
realize that I didn't add disableViewIndexes code in UpgradeUtil, if you could
do that in this patch that'd be much appreciated).
You can force to not upgrade by setting the NO_UPGRADE_ATTRIB. See below code
in QueryUtil.
{code}
/**
* @return {@link PhoenixConnection} with NO_UPGRADE_ATTRIB set so that we
don't initiate server upgrade
*/
public static Connection getConnectionOnServer(Configuration conf) throws
ClassNotFoundException,
SQLException {
return getConnectionOnServer(new Properties(), conf);
}
/**
* @return {@link PhoenixConnection} with NO_UPGRADE_ATTRIB set so that we
don't initiate server upgrade
*/
public static Connection getConnectionOnServer(Properties props,
Configuration conf)
throws ClassNotFoundException,
SQLException {
props.setProperty(PhoenixRuntime.NO_UPGRADE_ATTRIB,
Boolean.TRUE.toString());
return getConnection(props, conf);
}
{code}
> Upgrading to 4.8 doesn't recreate local indexes
> -----------------------------------------------
>
> Key: PHOENIX-3002
> URL: https://issues.apache.org/jira/browse/PHOENIX-3002
> Project: Phoenix
> Issue Type: Bug
> Reporter: Samarth Jain
> Assignee: Rajeshbabu Chintaguntla
> Priority: Blocker
> Fix For: 4.8.0
>
> Attachments: PHOENIX-3002.patch, PHOENIX-3002_v0.patch
>
>
> [~rajeshbabu] - I noticed that when upgrading to 4.8, local indexes created
> with 4.7 or before aren't getting recreated with the new local indexes
> implementation. I am not seeing the metadata rows for the recreated indices
> in SYSTEM.CATALOG.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)