[
https://issues.apache.org/jira/browse/PHOENIX-954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982756#comment-13982756
]
James Taylor commented on PHOENIX-954:
--------------------------------------
Ah, never mind - your way ahead of me - I see this in your next patch. Thanks!
> 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
>
> Attachments: PHOENIX-954.patch
>
>
> 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)