[ 
https://issues.apache.org/jira/browse/PHOENIX-7269?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Istvan Toth updated PHOENIX-7269:
---------------------------------
    Description: 
When attempting to upgrade the metadata during upgrade, the process is aborted 
if Phoenix encounters indexes defined in SYSTEM.CATALOG, but missing the 
corresponding HBase backing table.

Upgrade should log a warning, but continue in this case, as those indexes are 
broken anyway.



{noformat}
Caused by: org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 
(42M03): Table undefined. tableName=REDACTED
        ... 14 more

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:192)
        at 
org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:991)
        at 
org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:953)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1785)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1764)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:2013)
        at 
org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:657)
        at 
org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:545)
        at 
org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:541)
        at 
org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:536)
        at 
org.apache.phoenix.util.PhoenixRuntime.getTable(PhoenixRuntime.java:457)
        at 
org.apache.phoenix.util.UpgradeUtil.addViewIndexToParentLinks(UpgradeUtil.java:1244)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:3794)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3951)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:3337)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:3238)
        at 
org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
        at 
org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:3238)
        at 
org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
        at 
org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:144)
        at org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
        at sqlline.DatabaseConnection.connect(DatabaseConnection.java:135)
        at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)
        at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)
        at sqlline.Commands.connect(Commands.java:1364)
        at sqlline.Commands.connect(Commands.java:1244)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:730)
        at sqlline.SqlLine.initArgs(SqlLine.java:410)
        at sqlline.SqlLine.begin(SqlLine.java:515)
        at sqlline.SqlLine.start(SqlLine.java:267)
        at sqlline.SqlLine.main(SqlLine.java:206){noformat}


  was:
When attempting to upgrade the metadata during upgrade, the process is aborted 
if Phoenix encounters indexes defined in SYSTEM.CATALOG, but missing the 
corresponding HBase backing table.

Upgrade should log a warning, but continue in this case, as those indexes are 
broken anyway.


> Upgrade fails when HBase table for index is missing
> ---------------------------------------------------
>
>                 Key: PHOENIX-7269
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7269
>             Project: Phoenix
>          Issue Type: Bug
>          Components: core
>            Reporter: Istvan Toth
>            Priority: Major
>
> When attempting to upgrade the metadata during upgrade, the process is 
> aborted if Phoenix encounters indexes defined in SYSTEM.CATALOG, but missing 
> the corresponding HBase backing table.
> Upgrade should log a warning, but continue in this case, as those indexes are 
> broken anyway.
> {noformat}
> Caused by: org.apache.phoenix.schema.TableNotFoundException: ERROR 1012 
> (42M03): Table undefined. tableName=REDACTED
>         ... 14 more
>         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
>         at 
> org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:991)
>         at 
> org.apache.hadoop.hbase.client.HTable.coprocessorService(HTable.java:953)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1785)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.metaDataCoprocessorExec(ConnectionQueryServicesImpl.java:1764)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.getTable(ConnectionQueryServicesImpl.java:2013)
>         at 
> org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:657)
>         at 
> org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:545)
>         at 
> org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:541)
>         at 
> org.apache.phoenix.schema.MetaDataClient.updateCache(MetaDataClient.java:536)
>         at 
> org.apache.phoenix.util.PhoenixRuntime.getTable(PhoenixRuntime.java:457)
>         at 
> org.apache.phoenix.util.UpgradeUtil.addViewIndexToParentLinks(UpgradeUtil.java:1244)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:3794)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:3951)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:3337)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:3238)
>         at 
> org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76)
>         at 
> org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:3238)
>         at 
> org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(PhoenixDriver.java:255)
>         at 
> org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:144)
>         at 
> org.apache.phoenix.jdbc.PhoenixDriver.connect(PhoenixDriver.java:221)
>         at sqlline.DatabaseConnection.connect(DatabaseConnection.java:135)
>         at 
> sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)
>         at 
> sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:192)
>         at sqlline.Commands.connect(Commands.java:1364)
>         at sqlline.Commands.connect(Commands.java:1244)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
>         at sqlline.SqlLine.dispatch(SqlLine.java:730)
>         at sqlline.SqlLine.initArgs(SqlLine.java:410)
>         at sqlline.SqlLine.begin(SqlLine.java:515)
>         at sqlline.SqlLine.start(SqlLine.java:267)
>         at sqlline.SqlLine.main(SqlLine.java:206){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to