[ 
https://issues.apache.org/jira/browse/PHOENIX-6190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ankit Singhal updated PHOENIX-6190:
-----------------------------------
    Fix Version/s:     (was: 4.16.0)
                       (was: 5.1.0)

> Race condition in view creation may allow conflicting changes for pre-4.15 
> clients and for scenarios with phoenix.allow.system.catalog.rollback=true
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6190
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6190
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.0.0, 4.15.0
>            Reporter: Chinmay Kulkarni
>            Priority: Major
>
> For pre-4.15 clients and in scenarios where 
> phoenix.allow.system.catalog.rollback=true, we have to block adding/dropping 
> a column to/from a parent table/view as we no longer lock the parent on the 
> server side while creating a child view to prevent conflicting changes. This 
> is handled on the client side from 4.15 onwards.
> However, there is a slight race condition here where a view may be created 
> between the time we find all children of the parent and the time we do this 
> check (see 
> [this|https://github.com/apache/phoenix/blob/264310bd1e6c14996c3cfb11557fc66a012cb01b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java#L2592]).



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

Reply via email to