Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Phoenix tests #7671

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

findepi
Copy link
Member

@findepi findepi commented Apr 21, 2021

This reverts "Disable Phoenix tests due to GHA setup issue" commit
(fea0e2a).

Fixes #7534
Supersedes #7588
Depends on actions/runner-images#3185

Stress tests results https://github.com/trinodb/trino/runs/2408304130, https://github.com/trinodb/trino/runs/2408568095

@cla-bot cla-bot bot added the cla-signed label Apr 21, 2021
@findepi findepi added WIP and removed WIP labels Apr 21, 2021
@findepi findepi requested a review from losipiuk April 22, 2021 09:10
@kokosing
Copy link
Member

It looks like you found another flaky test:

Error:  Tests run: 164, Failures: 1, Errors: 0, Skipped: 32, Time elapsed: 351.692 s <<< FAILURE! - in TestSuite
Error:  testArray(io.trino.plugin.phoenix5.TestPhoenixTypeMapping)  Time elapsed: 10.219 s  <<< FAILURE!
java.lang.RuntimeException: 
Error executing sql:
CREATE TABLE tpch.test_array_decimal_8zl9q (
col_0 decimal(3, 0) ARRAY,
col_1 decimal(3, 1) ARRAY,
col_2 decimal(4, 2) ARRAY,
col_3 decimal(24, 2) ARRAY,
col_4 decimal(24, 4) ARRAY,
col_5 decimal(30, 5) ARRAY,
col_6 decimal(38, 0) ARRAY,
col_7 integer primary key)
	at io.trino.plugin.phoenix5.PhoenixSqlExecutor.execute(PhoenixSqlExecutor.java:54)
	at io.trino.testing.sql.TestTable.<init>(TestTable.java:48)
	at io.trino.testing.sql.TestTable.<init>(TestTable.java:41)
	at io.trino.testing.datatype.CreateAndInsertDataSetup.createTestTable(CreateAndInsertDataSetup.java:74)
	at io.trino.testing.datatype.CreateAndInsertDataSetup.setupTestTable(CreateAndInsertDataSetup.java:42)
	at io.trino.testing.datatype.DataTypeTest.execute(DataTypeTest.java:89)
	at io.trino.testing.datatype.DataTypeTest.execute(DataTypeTest.java:82)
	at io.trino.plugin.phoenix5.TestPhoenixTypeMapping.testArray(TestPhoenixTypeMapping.java:264)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:645)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:851)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1177)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.phoenix.schema.SchemaNotFoundException: ERROR 722 (43M05): Schema does not exist schemaName=TPCH
	at org.apache.phoenix.compile.FromCompiler$BaseColumnResolver.createSchemaRef(FromCompiler.java:737)
	at org.apache.phoenix.compile.FromCompiler$SchemaResolver.<init>(FromCompiler.java:346)
	at org.apache.phoenix.compile.FromCompiler.getResolverForCreation(FromCompiler.java:166)
	at org.apache.phoenix.compile.CreateTableCompiler.compile(CreateTableCompiler.java:88)
	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableCreateTableStatement.compilePlan(PhoenixStatement.java:841)
	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableCreateTableStatement.compilePlan(PhoenixStatement.java:830)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:407)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:397)
	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:396)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:384)
	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1925)
	at io.trino.plugin.phoenix5.PhoenixSqlExecutor.execute(PhoenixSqlExecutor.java:50)
	... 20 more

[INFO] 
[INFO] Results:
[INFO] 
Error:  Failures: 
Error:    TestPhoenixTypeMapping.testArray:264 » Runtime Error executing sql:
CREATE TAB...

@findepi
Copy link
Member Author

findepi commented Apr 22, 2021

yes, i did!

@findepi
Copy link
Member Author

findepi commented Apr 22, 2021

@findepi findepi force-pushed the findepi/enable-phoenix-tests-9531ce branch from 3358bcc to 8ebf18d Compare April 22, 2021 12:20
This reverts "Disable Phoenix tests due to GHA setup issue" commit
(fea0e2a).
@findepi findepi force-pushed the findepi/enable-phoenix-tests-9531ce branch from 8ebf18d to a01c724 Compare April 22, 2021 12:20
@findepi findepi merged commit 38b5e81 into trinodb:master Apr 22, 2021
@findepi findepi deleted the findepi/enable-phoenix-tests-9531ce branch April 22, 2021 12:21
@findepi
Copy link
Member Author

findepi commented Apr 22, 2021

Merged per actions/runner-images#3185 (comment)

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

Successfully merging this pull request may close these issues.

Testing Phoenix service is flaky: Cannot assign requested address
2 participants