You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "rajeshbabu (JIRA)" <ji...@apache.org> on 2014/04/27 15:25:15 UTC

[jira] [Created] (PHOENIX-954) View index sequences of a non multi tenant table are not getting deleted after main table drop

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)