Skip to content

PHOENIX-6653 Add upgrade tests based on HBase snapshots#1485

Merged
richardantal merged 1 commit intoapache:masterfrom
richardantal:PHOENIX-6653-master
Aug 16, 2022
Merged

PHOENIX-6653 Add upgrade tests based on HBase snapshots#1485
richardantal merged 1 commit intoapache:masterfrom
richardantal:PHOENIX-6653-master

Conversation

@richardantal
Copy link
Copy Markdown
Contributor

No description provided.

  Corrected the HBase table names based on namespace mapping in
  moveOrCopyChildLinks during upgrade
@gjacoby126
Copy link
Copy Markdown
Contributor

Code looks fine but there's a failure in the new test:
ERROR] org.apache.phoenix.end2end.LoadSystemTableSnapshotIT.testPhoenixUpgrade Time elapsed: 39.083 s <<< ERROR! org.apache.phoenix.schema.ColumnNotFoundException: ERROR 504 (42703): Undefined column. columnName=SYSTEM.CATALOG.COLUMN_QUALIFIER at org.apache.phoenix.schema.PTableImpl.getColumnForColumnName(PTableImpl.java:1278) at org.apache.phoenix.compile.FromCompiler$SingleTableColumnResolver.resolveColumn(FromCompiler.java:533) at org.apache.phoenix.compile.UpsertCompiler.compile(UpsertCompiler.java:525) at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableUpsertStatement.compilePlan(PhoenixStatement.java:1006) at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableUpsertStatement.compilePlan(PhoenixStatement.java:992) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:537) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:519) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:518) at org.apache.phoenix.jdbc.PhoenixStatement.access$800(PhoenixStatement.java:246) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:584) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:519) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:518) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:506) at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:168) at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:178) at org.apache.phoenix.schema.ColumnMetaDataOps.addColumnMutationInternal(ColumnMetaDataOps.java:139) at org.apache.phoenix.schema.ColumnMetaDataOps.addColumnMutation(ColumnMetaDataOps.java:89) at org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:4014) at org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3797) at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1733) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:553) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:519) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:518) at org.apache.phoenix.jdbc.PhoenixStatement.access$800(PhoenixStatement.java:246) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:584) at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:519) at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:518) at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:506) at org.apache.phoenix.jdbc.PhoenixStatement.executeUpdate(PhoenixStatement.java:2149) at org.apache.phoenix.query.ConnectionQueryServicesImpl.addColumn(ConnectionQueryServicesImpl.java:3256) at org.apache.phoenix.query.ConnectionQueryServicesImpl.addColumnsIfNotExists(ConnectionQueryServicesImpl.java:3285) at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemCatalogIfRequired(ConnectionQueryServicesImpl.java:3825) at org.apache.phoenix.query.ConnectionQueryServicesImpl.upgradeSystemTables(ConnectionQueryServicesImpl.java:4090) at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:3459) at org.apache.phoenix.query.ConnectionQueryServicesImpl$12.call(ConnectionQueryServicesImpl.java:3360) at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(ConnectionQueryServicesImpl.java:3360) at org.apache.phoenix.jdbc.PhoenixTestDriver.getConnectionQueryServices(PhoenixTestDriver.java:96) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.createConnection(PhoenixEmbeddedDriver.java:144) at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(PhoenixEmbeddedDriver.java:138) at org.apache.phoenix.jdbc.PhoenixTestDriver.connect(PhoenixTestDriver.java:83) at org.apache.phoenix.query.BaseTest.initAndRegisterTestDriver(BaseTest.java:672) at org.apache.phoenix.query.BaseTest.setUpTestDriver(BaseTest.java:522) at org.apache.phoenix.end2end.LoadSystemTableSnapshotIT.testPhoenixUpgrade(LoadSystemTableSnapshotIT.java:172)

@richardantal
Copy link
Copy Markdown
Contributor Author

Thanks for checking, @gjacoby126
That is expected, it is PHOENIX-6754 , I have a PR for that #1474 will merge the fix for that tomorrow morning.
I also have PR with the 2 changes #1480 the test should pass there.

@richardantal richardantal merged commit fed2728 into apache:master Aug 16, 2022
@richardantal
Copy link
Copy Markdown
Contributor Author

Thanks Istvan for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants