Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6083

View index creation does a checkAndPut on an incorrect row key

    XMLWordPrintableJSON

Details

    Description

      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.

       

      Attachments

        1. image-2020-08-18-11-09-53-816.png
          92 kB
          Chinmay Kulkarni
        2. image-2020-08-18-11-09-35-080.png
          28 kB
          Chinmay Kulkarni

        Activity

          People

            richardantal Richárd Antal
            ckulkarni Chinmay Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: