rajeshbabu created PHOENIX-954:
----------------------------------

             Summary: View index sequences of a non multi tenant table are not 
getting deleted after main table drop
                 Key: PHOENIX-954
                 URL: https://issues.apache.org/jira/browse/PHOENIX-954
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.0.0
            Reporter: rajeshbabu
            Assignee: rajeshbabu
            Priority: Minor
             Fix For: 5.0.0, 3.1, 4.1


Lets suppose we have created view indices for a table and drop it then view 
index sequences are not getting deleted.
When we drop main table corresponding view index table will be deleted. So 
{code}
MetaDataUtil.hasViewIndexTable(connection, table.getPhysicalName()){code}
 always return false and 
{code}MetaDataUtil.deleteViewIndexSequences(connection, 
table.getPhysicalName()){code} never be called.

{code}
                        if (tableType == PTableType.TABLE && 
(table.isMultiTenant() || MetaDataUtil.hasViewIndexTable(connection, 
table.getPhysicalName()))) {
                            MetaDataUtil.deleteViewIndexSequences(connection, 
table.getPhysicalName());
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to