You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Thomas D'Silva (JIRA)" <ji...@apache.org> on 2017/05/31 21:34:04 UTC
[jira] [Updated] (PHOENIX-3900) Backward compatibility fails with
TNF exception when deleting table with a view
[ https://issues.apache.org/jira/browse/PHOENIX-3900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas D'Silva updated PHOENIX-3900:
------------------------------------
Attachment: PHOENIX-3900.patch
Its failing because the format of the row key of the CHILD->PARENT link row is different from that of the new PARENT->CHILD link row. I have attached a patch that fixes this issue.
[~mujtabachohan] Can you please run the b/w compat tests with this patch to see if there are any other issues?
Thanks,
Thomas
> Backward compatibility fails with TNF exception when deleting table with a view
> -------------------------------------------------------------------------------
>
> Key: PHOENIX-3900
> URL: https://issues.apache.org/jira/browse/PHOENIX-3900
> Project: Phoenix
> Issue Type: Bug
> Reporter: Mujtaba Chohan
> Assignee: Thomas D'Silva
> Fix For: 4.11.0
>
> Attachments: PHOENIX-3900.patch
>
>
> {noformat}
> Error: ERROR 1012 (42M03): Table undefined. tableName=T (state=42M03,code=1012)
> org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 (42M03): Table undefined. tableName=T
> at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2479)
> at org.apache.phoenix.schema.MetaDataClient.dropTable(MetaDataClient.java:2401)
> at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableDropTableStatement$1.execute(PhoenixStatement.java:903)
> at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:355)
> {noformat}
> Using 4.9.0 client and server with head of 4.x (this is after commit of PHOENIX-3870)
> {noformat}
> create table T (pk1 varchar not null primary key, mycol varchar) salt_buckets=4;
> create view TV (mycol2 varchar) as select * from T;
> drop table T cascade;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)