phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kadir OZDEMIR (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-5247) DROP TABLE and DROP VIEW commands fail to drop second or higher level child views
Date Thu, 18 Apr 2019 06:38:00 GMT

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

Kadir OZDEMIR commented on PHOENIX-5247:
----------------------------------------

I attached the same patch with the correct name. 

> DROP TABLE and DROP VIEW commands fail to drop second or higher level child views
> ---------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5247
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5247
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.14.2
>            Reporter: Kadir OZDEMIR
>            Assignee: Kadir OZDEMIR
>            Priority: Major
>             Fix For: 4.14.2
>
>         Attachments: PHOENIX-5247.4.14-HBase-1.2.001.patch, PHOENIX-5247.4.14.1-HBase-1.2.001.patch
>
>
> We have seen large number of orphan views in our production environments. The method
(doDropTable) that is used to drop tables and views drops only the first level child views
of tables. This seems to be the main root cause for orphan views. doDropTable() is recursive
only when the table type is TABLE or SYSTEM. The table type for views is VIEW. The findChildViews
method returns the first level child views. So, doDropTable ignores dropping views of views
(i.e., second or higher level views).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message