You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Chinmay Kulkarni (Jira)" <ji...@apache.org> on 2020/08/18 18:10:00 UTC

[jira] [Created] (PHOENIX-6083) View index creation does a checkAndPut on an incorrect row key

Chinmay Kulkarni created PHOENIX-6083:
-----------------------------------------

             Summary: View index creation does a checkAndPut on an incorrect row key
                 Key: PHOENIX-6083
                 URL: https://issues.apache.org/jira/browse/PHOENIX-6083
             Project: Phoenix
          Issue Type: Bug
            Reporter: Chinmay Kulkarni
         Attachments: image-2020-08-18-11-09-35-080.png, image-2020-08-18-11-09-46-151.png, image-2020-08-18-11-09-53-816.png

When creating a view index, we "lock" on the indexed and included columns by doing a checkAndPut on the cell: 
(<physical parent's schema name>, <physical parent's table name>, <name of the indexed/included column>)

This is done to prevent another client from concurrently dropping any of the indexed/included columns. This however, is not working as expected since the indexed column naming convention is different (<column family>:<column name>) rather than just <column name>. 

Thus, concurrent dropping of the column is not prevented and this leads to failure in view index creation with either an NPE or IllegalArgumentException.

!image-2020-08-18-11-09-35-080.png!

!image-2020-08-18-11-09-53-816.png!

 



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