trino icon indicating copy to clipboard operation
trino copied to clipboard

TestOracleQueryFailureRecoveryTest.testExplainAnalyze is flaky

Open homar opened this issue 1 year ago • 6 comments

Stack trace:

024-01-09T15:00:48.8055537Z [ERROR] io.trino.plugin.oracle.TestOracleQueryFailureRecoveryTest.testExplainAnalyze -- Time elapsed: 113.5 s <<< FAILURE!
2024-01-09T15:00:48.8056993Z org.opentest4j.AssertionFailedError: 
2024-01-09T15:00:48.8057931Z [There should be no remaining tmp_trino tables that are queryable. They are:
2024-01-09T15:00:48.8059392Z 	For queryId [20240109_150038_00340_jbg2s] (prefix [tmp_trino_e4d6677f_]) remaining tables: [tmp_trino_e4d6677f_ddcda619]
2024-01-09T15:00:48.8060490Z 		With errors: [
2024-01-09T15:00:48.8060977Z 			Expecting code to raise a throwable.]] 
2024-01-09T15:00:48.8061660Z Expecting value to be true but was false
2024-01-09T15:00:48.8062750Z 	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
2024-01-09T15:00:48.8064402Z 	at io.trino.testing.BaseFailureRecoveryTest.checkTemporaryTables(BaseFailureRecoveryTest.java:422)
2024-01-09T15:00:48.8066412Z 	at io.trino.testing.BaseFailureRecoveryTest$FailureRecoveryAssert.cleansUpTemporaryTables(BaseFailureRecoveryTest.java:583)
2024-01-09T15:00:48.8068313Z 	at io.trino.testing.BaseFailureRecoveryTest.testNonSelect(BaseFailureRecoveryTest.java:368)
2024-01-09T15:00:48.8070028Z 	at io.trino.testing.BaseFailureRecoveryTest.testTableModification(BaseFailureRecoveryTest.java:306)
2024-01-09T15:00:48.8071842Z 	at io.trino.testing.BaseFailureRecoveryTest.testTableModification(BaseFailureRecoveryTest.java:301)
2024-01-09T15:00:48.8073580Z 	at io.trino.testing.BaseFailureRecoveryTest.testExplainAnalyze(BaseFailureRecoveryTest.java:278)
2024-01-09T15:00:48.8074948Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
2024-01-09T15:00:48.8076133Z 	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
2024-01-09T15:00:48.8077438Z 	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
2024-01-09T15:00:48.8078943Z 	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
2024-01-09T15:00:48.8080397Z 	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
2024-01-09T15:00:48.8081991Z 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
2024-01-09T15:00:48.8083497Z 	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

Executed here: https://github.com/trinodb/trino/actions/runs/7462636617/job/20305568854?pr=20211

homar avatar Jan 09 '24 16:01 homar

might be worth checking if it's the Oracle recycle bin causing issues. See https://satya-dba.blogspot.com/2009/02/recycle-bin.html for context.

hashhar avatar Jan 09 '24 16:01 hashhar

https://github.com/trinodb/trino/actions/runs/7747877177/job/21129917583?pr=20539

Error:  Failures: 
Error:    TestOracleQueryFailureRecoveryTest>BaseFailureRecoveryTest.testExplainAnalyze:279->BaseFailureRecoveryTest.testTableModification:302->BaseFailureRecoveryTest.testTableModification:307->BaseFailureRecoveryTest.testNonSelect:339->BaseFailureRecoveryTest.checkTemporaryTables:423 [There should be no remaining tmp_trino tables that are queryable. They are:
	For queryId [20240201_221055_00298_wq9ez] (prefix [tmp_trino_f5b6bce2_]) remaining tables: [tmp_trino_f5b6bce2_b34b89a2]
		With errors: [
			Expecting code to raise a throwable.]] 
Expecting value to be true but was false

findepi avatar Feb 02 '24 07:02 findepi

https://github.com/trinodb/trino/actions/runs/7846202911/job/21412495866?pr=20445

For queryId [20240209_155453_00340_wac4h] (prefix [tmp_trino_56864193_]) remaining tables: [tmp_trino_56864193_6c30b365]
	With errors: [
		Expecting code to raise a throwable.]] 

Praveen2112 avatar Feb 12 '24 06:02 Praveen2112

But for Oracle recycle bin - the table would be renamed right to a specific pattern ? Here the it looks like the normal Trino table we create

Praveen2112 avatar Feb 12 '24 06:02 Praveen2112

In testTableModification this time:

org.opentest4j.AssertionFailedError: 
[There should be no remaining tmp_trino tables that are queryable. They are:
	For queryId [20240209_111837_00200_5kdqb] (prefix [tmp_trino_b3eee6f2_]) remaining tables: [tmp_trino_b3eee6f2_869443f8]
		With errors: [
2024-02-09T05:19:04.617-0600	INFO	ForkJoinPool-1-worker-6	io.trino.testing.services.junit.LogTestDurationListener	Test TestOracleTaskFailureRecoveryTest took 4.38m
			Expecting code to raise a throwable.]] 
Expecting value to be true but was false
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
	at io.trino.testing.BaseFailureRecoveryTest.checkTemporaryTables(BaseFailureRecoveryTest.java:423)
	at io.trino.testing.BaseFailureRecoveryTest$FailureRecoveryAssert.cleansUpTemporaryTables(BaseFailureRecoveryTest.java:584)
	at io.trino.testing.BaseFailureRecoveryTest.testNonSelect(BaseFailureRecoveryTest.java:369)
	at io.trino.testing.BaseFailureRecoveryTest.testTableModification(BaseFailureRecoveryTest.java:307)
	at io.trino.testing.BaseFailureRecoveryTest.testTableModification(BaseFailureRecoveryTest.java:302)
	at io.trino.testing.BaseFailureRecoveryTest.testCreateTable(BaseFailureRecoveryTest.java:186)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2076)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:423)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:651)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)

https://github.com/trinodb/trino/actions/runs/7842991784/job/21402575189?pr=20641

ksobolew avatar Feb 12 '24 11:02 ksobolew

https://github.com/trinodb/trino/actions/runs/7874385993/job/21484893211?pr=20661

[INFO] 
Error:  Failures: 
Error:    TestOracleQueryFailureRecoveryTest>BaseFailureRecoveryTest.testExplainAnalyze:279->BaseFailureRecoveryTest.testTableModification:302->BaseFailureRecoveryTest.testTableModification:307->BaseFailureRecoveryTest.testNonSelect:330->BaseFailureRecoveryTest.checkTemporaryTables:423 [There should be no remaining tmp_trino tables that are queryable. They are:
	For queryId [20240212_164405_00273_agxde] (prefix [tmp_trino_315a4aa9_]) remaining tables: [tmp_trino_315a4aa9_d08bf33a]
		With errors: [
			Expecting code to raise a throwable.]] 
Expecting value to be true but was false
[INFO] 
Error:  Tests run: 421, Failures: 1, Errors: 0, Skipped: 92

cc @losipiuk @dekimir

findepi avatar Feb 12 '24 17:02 findepi

https://github.com/trinodb/trino/actions/runs/8114072250/job/22179928376

Error:    TestOracleTaskFailureRecoveryTest>BaseFailureRecoveryTest.testExplainAnalyze:279->BaseFailureRecoveryTest.testTableModification:302->BaseFailureRecoveryTest.testTableModification:307->BaseFailureRecoveryTest.testNonSelect:330->BaseFailureRecoveryTest.checkTemporaryTables:423 [There should be no remaining tmp_trino tables that are queryable. They are:
	For queryId [20240301_165606_00203_tex2e] (prefix [tmp_trino_715387f8_]) remaining tables: [tmp_trino_715387f8_b56ecb7a]
		With errors: [
			Expecting throwable message:
			  "Table 'trino_test.tmp_trino_715387f8_b56ecb7a' has no supported columns (all 0 columns are not supported)"
			to contain:
			  ".tmp_trino_715387f8_b56ecb7a' does not exist"
			but did not.

ebyhr avatar Mar 02 '24 03:03 ebyhr

https://github.com/trinodb/trino/actions/runs/8179694894/job/22366298498?pr=17909

ebyhr avatar Mar 06 '24 23:03 ebyhr

https://github.com/trinodb/trino/actions/runs/8567330556/job/23479059695

ksobolew avatar Apr 05 '24 10:04 ksobolew

https://github.com/trinodb/trino/actions/runs/8605621096/job/23582676260

Error:    TestOracleQueryFailureRecoveryTest>BaseFailureRecoveryTest.testCreateTable:186->BaseFailureRecoveryTest.testTableModification:302->BaseFailureRecoveryTest.testTableModification:307->BaseFailureRecoveryTest.testNonSelect:369->BaseFailureRecoveryTest.checkTemporaryTables:423 [There should be no remaining tmp_trino tables that are queryable. They are:
	For queryId [20240408_203032_00341_rdk8y] (prefix [tmp_trino_0501af79_]) remaining tables: [tmp_trino_0501af79_21db1e87]
		With errors: [
			Expecting code to raise a throwable.]] 
Expecting value to be true but was false

ebyhr avatar Apr 08 '24 21:04 ebyhr

This test looks very flaky now. https://github.com/trinodb/trino/actions/runs/8615878328/job/23618702951 cc: @losipiuk

ebyhr avatar Apr 09 '24 23:04 ebyhr

https://github.com/trinodb/trino/actions/runs/8622811102/job/23635002663?pr=18521

findinpath avatar Apr 10 '24 08:04 findinpath

https://github.com/trinodb/trino/actions/runs/8633937206/job/23668306155?pr=21470

findepi avatar Apr 10 '24 16:04 findepi

https://github.com/trinodb/trino/actions/runs/8692149788/job/23836185914?pr=21559

findepi avatar Apr 16 '24 10:04 findepi