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

Hadoop QA commented on PHOENIX-5544:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12985045/PHOENIX-5544-4.x-HBase-1.3-v1.patch
  against 4.x-HBase-1.3 branch at commit 
0aa7d5722d92126d2e50fd2b1346c57305c4d745.
  ATTACHMENT ID: 12985045

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
                        Please justify why no new tests are needed for this 
patch.
                        Also please list what manual steps were performed to 
verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:red}-1 lineLengths{color}.  The patch introduces the following lines 
longer than 100:
    +                        getSystemTableForChildLinks(clientVersion, 
env.getConfiguration()).getName());
+                            getSystemTableForChildLinks(clientVersion, 
env.getConfiguration()).equals(
+                                    + "for old clients connecting to a new 
server with old metadata."

     {color:red}-1 core tests{color}.  The patch failed these unit tests:
     

Test results: 
https://builds.apache.org/job/PreCommit-PHOENIX-Build/3093//testReport/
Console output: 
https://builds.apache.org/job/PreCommit-PHOENIX-Build/3093//console

This message is automatically generated.

> Dropping a base table with cascade with an older client does not clear all 
> child view metadata
> ----------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5544
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5544
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0, 5.1.0
>            Reporter: Chinmay Kulkarni
>            Assignee: Chinmay Kulkarni
>            Priority: Major
>             Fix For: 4.15.0, 5.1.0
>
>         Attachments: PHOENIX-5544-4.x-HBase-1.3-v1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 1) Start the HBase server with 4.15.0 Phoenix
> 2) Connect with a 4.14 client
> 3) Create a base table and a view on top of the base table:
> {code:sql}
> CREATE TABLE IF NOT EXISTS Z_BASE_TABLE (ID INTEGER NOT NULL PRIMARY KEY, 
> HOST VARCHAR(10), FLAG BOOLEAN);
> CREATE VIEW Z_VIEW1 (col1 INTEGER, col2 INTEGER, col3 INTEGER, col4 INTEGER, 
> col5 INTEGER) AS SELECT * FROM Z_BASE_TABLE WHERE ID>10;
> {code}
> 4) Drop the base table with the cascade option:
> {code:sql}
> DROP TABLE Z_BASE_TABLE CASCADE;
> {code}
> 5) Metadata for Z_VIEW1 is still there in SYSTEM.CATALOG and should be 
> removed when trying to recreate the same base table:
> {code:sql}
> CREATE TABLE IF NOT EXISTS Z_BASE_TABLE (ID INTEGER NOT NULL PRIMARY KEY, 
> HOST VARCHAR(10), FLAG BOOLEAN);
> {code}
> 6) This should remove the metadata for Z_VIEW1, but it does not. In fact, you 
> can now query Z_VIEW1 as if it was a valid view created on top of the new 
> Z_BASE_TABLE, however there is no parent->child link i.e.:
> {code:sql}
> SELECT * FROM SYSTEM.CATALOG WHERE LINK_TYPE=4;
> {code}
> --> Returns no results.
> Effectively, Z_VIEW1 is sort of an "orphan" view with child->parent links but 
> no parent->child links. This is dangerous if a user wants to drop and 
> recreate a base table, but views from the previous lifetime of the base table 
> can still be used to interact with the new base table.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to