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

ASF GitHub Bot commented on PHOENIX-3097:
-----------------------------------------

GitHub user SsnL opened a pull request:

    https://github.com/apache/phoenix/pull/185

    [PHOENIX-3097] Incompatibilities with HBase 0.98.6

    This fixes most of the incompatibilities. However, there is a call to 
`HBaseAdmin.truncateTable` (not available in 0.98.6) at 
https://github.com/apache/phoenix/blob/4.x-HBase-0.98/phoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java#L598.
 This isn't easy to fix as the logic in convoluted in HBase side..
    
    Fortunately, this only happens when users of view indexes upgrade from an 
older Phoenix version. We could alert users with HBase 0.98.6 before they 
upgrades.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SsnL/phoenix PHOENIX-3097

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/phoenix/pull/185.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #185
    
----

----


> Incompatibilities with HBase 0.98.6
> -----------------------------------
>
>                 Key: PHOENIX-3097
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3097
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.7.0
>            Reporter: Tongzhou Wang
>            Assignee: Tongzhou Wang
>             Fix For: 4.8.0
>
>
> Two places in the 0.98 code base are not compatible with HBase 0.98.6.
> 1. calls to `RegionCoprocessorEnvironment.getRegionInfo()`. Can be replaced 
> by `env.getRegion().getRegionInfo()`.
> 2. calls to `User.runAsLoginUser()`. Can be replaced by `try 
> {UserGroupInformation.getLoginUser().doAs(xxxx)} catch ...`



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to