phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas D'Silva (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-4694) Prevent locking of parent table when dropping view to reduce contention
Date Mon, 23 Apr 2018 18:32:00 GMT

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

Thomas D'Silva commented on PHOENIX-4694:
-----------------------------------------

[~jamestaylor]

Instead of setting the parent table to null if the table is a view, should we set the lock
table name to current table name if the table is a view? We pass the parent table to {{doDropTable}}
which uses it to do some validation.

> Prevent locking of parent table when dropping view to reduce contention
> -----------------------------------------------------------------------
>
>                 Key: PHOENIX-4694
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4694
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Priority: Major
>             Fix For: 4.14.0, 5.0.0
>
>         Attachments: PHOENIX-4694.patch
>
>
> When there are many views with the same parent table, there's a lot of contention when
adding new views and dropping existing views. The lock is only necessary when creating/dropping
indexes, so should be removed in the case of views.



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

Mime
View raw message