Skip to content

Migrate assertStatement to ParserAssert + Remove redundant constructors from DropColumn #41874

Migrate assertStatement to ParserAssert + Remove redundant constructors from DropColumn

Migrate assertStatement to ParserAssert + Remove redundant constructors from DropColumn #41874

GitHub Actions / Test Report failed Sep 16, 2024 in 0s

102503 tests run, 3961 skipped, 14 failed.

Annotations

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testDataMappingSmokeTest

Execution of 'actual' query 20240916_002744_01756_tgbm5 failed: SELECT row_id FROM test_data_mapping_smoke_integerv3em6y0238 WHERE rand() = 42 OR value IS NULL
Raw output
java.lang.AssertionError: Execution of 'actual' query 20240916_002744_01756_tgbm5 failed: SELECT row_id FROM test_data_mapping_smoke_integerv3em6y0238 WHERE rand() = 42 OR value IS NULL
	at io.trino.testing.QueryAssertions.assertDistributedQuery(QueryAssertions.java:299)
	at io.trino.testing.QueryAssertions.assertQuery(QueryAssertions.java:187)
	at io.trino.testing.QueryAssertions.assertQuery(QueryAssertions.java:160)
	at io.trino.testing.AbstractTestQueryFramework.assertQuery(AbstractTestQueryFramework.java:350)
	at io.trino.testing.BaseConnectorTest.testDataMapping(BaseConnectorTest.java:5838)
	at io.trino.testing.BaseConnectorTest.testDataMappingSmokeTest(BaseConnectorTest.java:5806)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedQuery(QueryAssertions.java:290)
	... 17 more
	Suppressed: java.lang.Exception: SQL: SELECT row_id FROM test_data_mapping_smoke_integerv3em6y0238 WHERE rand() = 42 OR value IS NULL
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 19 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getRedirectionAwareTableHandle(MetadataManager.java:1940)
	at io.trino.metadata.MetadataManager.getRedirectionAwareTableHandle(MetadataManager.java:1932)
	at io.trino.tracing.TracingMetadata.getRedirectionAwareTableHandle(TracingMetadata.java:1494)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.getTableHandle(StatementAnalyzer.java:5842)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitTable(StatementAnalyzer.java:2291)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitTable(StatementAnalyzer.java:520)
	at io.trino.sql.tree.Table.accept(Table.java:60)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.analyzeFrom(StatementAnalyzer.java:4891)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitQuerySpecification(StatementAnalyzer.java:3091)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitQuerySpecification(StatementAnalyzer.java:520)
	at io.trino.sql.tree.QuerySpecification.accept(QuerySpecification.java:155)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:547)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitQuery(StatementAnalyzer.java:1562)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitQuery(StatementAnalyzer.java:520)
	at io.trino.sql.tree.Query.accept(Query.java:118)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
	at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
	at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
	at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
	at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 43 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 44 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 55 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testExplainAnalyzeWithDeleteWithSubquery

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.execute(DistributedQueryRunner.java:548)
	at io.trino.testing.AbstractTestQueryFramework.computeActual(AbstractTestQueryFramework.java:313)
	at io.trino.testing.AbstractTestQueryFramework.assertExplainAnalyze(AbstractTestQueryFramework.java:554)
	at io.trino.testing.AbstractTestQueryFramework.assertExplainAnalyze(AbstractTestQueryFramework.java:545)
	at io.trino.testing.AbstractTestQueryFramework.assertExplainAnalyze(AbstractTestQueryFramework.java:540)
	at io.trino.testing.BaseConnectorTest.testExplainAnalyzeWithDeleteWithSubquery(BaseConnectorTest.java:4743)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: EXPLAIN ANALYZE DELETE FROM test_delete_2xl1v72l1g WHERE regionkey IN (SELECT regionkey FROM region WHERE name LIKE 'A%' LIMIT 1)
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 13 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.listTableColumns(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getColumnHandles(RaptorMetadata.java:277)
	at io.trino.tracing.TracingConnectorMetadata.getColumnHandles(TracingConnectorMetadata.java:276)
	at io.trino.metadata.MetadataManager.getColumnHandles(MetadataManager.java:487)
	at io.trino.tracing.TracingMetadata.getColumnHandles(TracingMetadata.java:338)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.createMergeAnalysis(StatementAnalyzer.java:3654)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitDelete(StatementAnalyzer.java:852)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitDelete(StatementAnalyzer.java:520)
	at io.trino.sql.tree.Delete.accept(Delete.java:51)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitExplainAnalyze(StatementAnalyzer.java:1541)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitExplainAnalyze(StatementAnalyzer.java:520)
	at io.trino.sql.tree.ExplainAnalyze.accept(ExplainAnalyze.java:61)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
	at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
	at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
	at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
	at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 31 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 32 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 43 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testCompatibleTypeChangeForView

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedUpdate(QueryAssertions.java:108)
	at io.trino.testing.QueryAssertions.assertUpdate(QueryAssertions.java:62)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:420)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:415)
	at io.trino.testing.BaseConnectorTest.testCompatibleTypeChangeForView(BaseConnectorTest.java:1643)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1532)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2267)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: CREATE TABLE test_table_alwg3ihtq6 AS SELECT 'abcdefg' a
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 19 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy67.insertTransaction(Unknown Source)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseShardManager.beginTransaction(DatabaseShardManager.java:583)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.beginCreateTable(RaptorMetadata.java:614)
	at io.trino.tracing.TracingConnectorMetadata.beginCreateTable(TracingConnectorMetadata.java:620)
	at io.trino.metadata.MetadataManager.beginCreateTable(MetadataManager.java:1141)
	at io.trino.tracing.TracingMetadata.beginCreateTable(TracingMetadata.java:599)
	at io.trino.sql.planner.optimizations.BeginTableWrite$Rewriter.createWriterTarget(BeginTableWrite.java:233)
	at io.trino.sql.planner.optimizations.BeginTableWrite$Rewriter.visitTableFinish(BeginTableWrite.java:175)
	at io.trino.sql.planner.optimizations.BeginTableWrite$Rewriter.visitTableFinish(BeginTableWrite.java:93)
	at io.trino.sql.planner.plan.TableFinishNode.accept(TableFinishNode.java:105)
	at io.trino.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:81)
	at io.trino.sql.planner.plan.SimplePlanRewriter$RewriteContext.lambda$defaultRewrite$0(SimplePlanRewriter.java:72)
	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:423)
	at io.trino.sql.planner.plan.SimplePlanRewriter$RewriteContext.defaultRewrite(SimplePlanRewriter.java:72)
	at io.trino.sql.planner.plan.SimplePlanRewriter.visitPlan(SimplePlanRewriter.java:37)
	at io.trino.sql.planner.plan.SimplePlanRewriter.visitPlan(SimplePlanRewriter.java:21)
	at io.trino.sql.planner.plan.PlanVisitor.visitOutput(PlanVisitor.java:49)
	at io.trino.sql.planner.plan.OutputNode.accept(OutputNode.java:82)
	at io.trino.sql.planner.plan.SimplePlanRewriter.rewriteWith(SimplePlanRewriter.java:31)
	at io.trino.sql.planner.optimizations.BeginTableWrite.optimize(BeginTableWrite.java:78)
	at io.trino.sql.planner.LogicalPlanner.runOptimizer(LogicalPlanner.java:309)
	at io.trino.sql.planner.LogicalPlanner.plan(LogicalPlanner.java:272)
	at io.trino.sql.planner.LogicalPlanner.plan(LogicalPlanner.java:244)
	at io.trino.sql.planner.LogicalPlanner.plan(LogicalPlanner.java:239)
	at io.trino.execution.SqlQueryExecution.doPlanQuery(SqlQueryExecution.java:503)
	at io.trino.execution.SqlQueryExecution.planQuery(SqlQueryExecution.java:482)
	at io.trino.execution.SqlQueryExecution.start(SqlQueryExecution.java:420)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
	Suppressed: java.lang.Exception: Current plan:
                Output[columnNames = [rows]]
                │   Layout: [rows:bigint]
                └─ TableCommit[target = raptor.tpch.test_table_alwg3ihtq6]
                   │   Layout: [rows:bigint]
                   └─ LocalExchange[partitioning = SINGLE]
                      │   Layout: [partialrows:bigint, fragment:varbinary]
                      └─ RemoteExchange[type = GATHER]
                         │   Layout: [partialrows:bigint, fragment:varbinary]
                         └─ TableWriter[]
                            │   Layout: [partialrows:bigint, fragment:varbinary]
                            │   a := a
                            └─ RemoteExchange[partitionCount = 100, type = REPARTITION]
                               │   Layout: [a:varchar(7)]
                               └─ Values[]
                                      Layout: [a:varchar(7)]
                                      (varchar(7) 'abcdefg')

		at io.trino.sql.planner.optimizations.BeginTableWrite.optimize(BeginTableWrite.java:84)
		... 17 more
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 37 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 38 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 49 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testRenameTableToLongTableName

Failed to perform metadata operation
Raw output
io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.metadata.MetadataUtil.tableExists(MetadataUtil.java:197)
	at io.trino.testing.AbstractTestingTrinoClient.lambda$tableExists$6(AbstractTestingTrinoClient.java:205)
	at io.trino.testing.TransactionBuilder.execute(TransactionBuilder.java:162)
	at io.trino.testing.AbstractTestingTrinoClient.inTransaction(AbstractTestingTrinoClient.java:213)
	at io.trino.testing.AbstractTestingTrinoClient.tableExists(AbstractTestingTrinoClient.java:204)
	at io.trino.testing.DistributedQueryRunner.tableExists(DistributedQueryRunner.java:538)
	at io.trino.testing.BaseConnectorTest.testRenameTableToLongTableName(BaseConnectorTest.java:3645)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 23 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 24 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 35 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testCreateTableAsSelectWithUnicode

Execution of 'actual' query 20240916_002744_01757_tgbm5 failed: CREATE TABLE test_ctas_of8amfvslu AS SELECT '☃' unicode
Raw output
java.lang.AssertionError: Execution of 'actual' query 20240916_002744_01757_tgbm5 failed: CREATE TABLE test_ctas_of8amfvslu AS SELECT '☃' unicode
	at io.trino.testing.QueryAssertions.assertDistributedQuery(QueryAssertions.java:299)
	at io.trino.testing.QueryAssertions.assertQuery(QueryAssertions.java:187)
	at io.trino.testing.QueryAssertions.assertQuery(QueryAssertions.java:160)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:400)
	at io.trino.testing.BaseConnectorTest.assertCreateTableAsSelect(BaseConnectorTest.java:3963)
	at io.trino.testing.BaseConnectorTest.assertCreateTableAsSelect(BaseConnectorTest.java:3952)
	at io.trino.testing.BaseConnectorTest.testCreateTableAsSelectWithUnicode(BaseConnectorTest.java:3945)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedQuery(QueryAssertions.java:290)
	... 13 more
	Suppressed: java.lang.Exception: SQL: CREATE TABLE test_ctas_of8amfvslu AS SELECT '☃' unicode
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 15 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:910)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:520)
	at io.trino.sql.tree.CreateTableAsSelect.accept(CreateTableAsSelect.java:96)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
	at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
	at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
	at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
	at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 29 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 30 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 41 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testWrittenStats

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedUpdate(QueryAssertions.java:108)
	at io.trino.testing.QueryAssertions.assertUpdate(QueryAssertions.java:62)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:410)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:405)
	at io.trino.testing.BaseConnectorTest.testWrittenStats(BaseConnectorTest.java:5432)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: DROP TABLE IF EXISTS test_written_stats_sm7exj96wr
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 18 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getViews(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getView(RaptorMetadata.java:956)
	at io.trino.spi.connector.ConnectorMetadata.isView(ConnectorMetadata.java:981)
	at io.trino.tracing.TracingConnectorMetadata.isView(TracingConnectorMetadata.java:840)
	at io.trino.metadata.MetadataManager.lambda$isView$37(MetadataManager.java:1492)
	at java.base/java.util.Optional.map(Optional.java:260)
	at io.trino.metadata.MetadataManager.isView(MetadataManager.java:1488)
	at io.trino.tracing.TracingMetadata.isView(TracingMetadata.java:886)
	at io.trino.execution.DropTableTask.execute(DropTableTask.java:71)
	at io.trino.execution.DropTableTask.execute(DropTableTask.java:36)
	at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 21 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 22 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 33 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testAlterTableRenameColumnToLongName

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedUpdate(QueryAssertions.java:108)
	at io.trino.testing.QueryAssertions.assertUpdate(QueryAssertions.java:62)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:420)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:415)
	at io.trino.testing.BaseConnectorTest.testAlterTableRenameColumnToLongName(BaseConnectorTest.java:3731)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: CREATE TABLE test_long_columnp10orl5xl0 AS SELECT 123 x
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 18 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:910)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:520)
	at io.trino.sql.tree.CreateTableAsSelect.accept(CreateTableAsSelect.java:96)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
	at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
	at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
	at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
	at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 29 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 30 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 41 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testPotentialDuplicateDereferencePushdown

Expecting message:
  "Failed to perform metadata operation"
to be found for regex:
  "(\Qrow\E.*not (yet )?supported)|((?i)unsupported.*\Qrow\E)|((?i)not supported.*\Qrow\E)"
but did not.

Throwable that failed the check:

io.trino.testing.QueryFailedException: Failed to perform metadata operation
 at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
 at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
 at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
 at io.trino.testing.QueryAssertions.assertDistributedUpdate(QueryAssertions.java:108)
 at io.trino.testing.QueryAssertions.assertUpdate(QueryAssertions.java:62)
 at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:410)
 at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:405)
 at io.trino.testing.BaseConnectorTest.testPotentialDuplicateDereferencePushdown(BaseConnectorTest.java:6019)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:766)
 at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
 at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
 at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1532)
 at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2267)
 at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
 at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.joinConcurrentTasksInReverseOrderToEnableWorkStealing(ForkJoinPoolHierarchicalTestExecutorService.java:179)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.invokeAll(ForkJoinPoolHierarchicalTestExecutorService.java:153)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
 at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
 at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
 at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
 at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
 Suppressed: java.lang.Exception: SQL: CREATE TABLE test_dup_deref_lx6l57yvpe AS SELECT CAST(ROW('abc', 1) AS row(a varchar, b bigint)) r
  at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
  ... 59 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
 at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
 at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
 at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
 at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
 at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
 at java.base/java.util.Optional.flatMap(Optional.java:289)
 at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
 at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
 at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
 at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:910)
 at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:520)
 at io.trino.sql.tree.CreateTableAsSelect.accept(CreateTableAsSelect.java:96)
 at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
 at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
 at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
 at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
 at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
 at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
 at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
 at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
 at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
 at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
 at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
 at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
 at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
 at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
 at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
 at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
 ... 29 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
 at org.h2.message.DbException.get(DbException.java:212)
 at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
 at org.h2.mvstore.db.Store.<init>(Store.java:142)
 at org.h2.engine.Database.<init>(Database.java:326)
 at org.h2.engine.Engine.openSession(Engine.java:92)
 at org.h2.engine.Engine.openSession(Engine.java:222)
 at org.h2.engine.Engine.createSession(Engine.java:201)
 at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
 at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
 at org.h2.Driver.connect(Driver.java:59)
 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
 at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
 at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
 ... 30 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
 at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
 at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
 at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
 at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
 at org.h2.mvstore.FileStore.start(FileStore.java:918)
 at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
 at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
 at org.h2.mvstore.db.Store.<init>(Store.java:133)
 ... 41 more
Raw output
java.lang.AssertionError: 

Expecting message:
  "Failed to perform metadata operation"
to be found for regex:
  "(\Qrow\E.*not (yet )?supported)|((?i)unsupported.*\Qrow\E)|((?i)not supported.*\Qrow\E)"
but did not.

Throwable that failed the check:

io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedUpdate(QueryAssertions.java:108)
	at io.trino.testing.QueryAssertions.assertUpdate(QueryAssertions.java:62)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:410)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:405)
	at io.trino.testing.BaseConnectorTest.testPotentialDuplicateDereferencePushdown(BaseConnectorTest.java:6019)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:766)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1532)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2267)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.joinConcurrentTasksInReverseOrderToEnableWorkStealing(ForkJoinPoolHierarchicalTestExecutorService.java:179)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.invokeAll(ForkJoinPoolHierarchicalTestExecutorService.java:153)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: CREATE TABLE test_dup_deref_lx6l57yvpe AS SELECT CAST(ROW('abc', 1) AS row(a varchar, b bigint)) r
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 59 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:910)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:520)
	at io.trino.sql.tree.CreateTableAsSelect.accept(CreateTableAsSelect.java:96)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
	at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
	at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
	at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
	at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 29 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 30 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 41 more

	at io.trino.testing.BaseConnectorTest.verifyUnsupportedTypeException(BaseConnectorTest.java:6666)
	at io.trino.testing.BaseConnectorTest.testPotentialDuplicateDereferencePushdown(BaseConnectorTest.java:6022)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1532)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2267)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testRenameSchema

Expecting message:
  "Failed to perform metadata operation"
to match regex:
  "This connector does not support renaming schemas"
but did not.

Throwable that failed the check:

io.trino.testing.QueryFailedException: Failed to perform metadata operation
 at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
 at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
 at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
 at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:465)
 at io.trino.testing.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:445)
 at io.trino.testing.BaseConnectorTest.testRenameSchema(BaseConnectorTest.java:2194)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:766)
 at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
 at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
 at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
 at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
 at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
 at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
 Suppressed: java.lang.Exception: SQL: ALTER SCHEMA tpch RENAME TO tpchm8jydw5lmh
  at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
  ... 40 more
 Suppressed: java.lang.Exception: Query: ALTER SCHEMA tpch RENAME TO tpchm8jydw5lmh
  at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:469)
  ... 38 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
 at jdk.proxy2/jdk.proxy2.$Proxy115.listSchemaNames(Unknown Source)
 at io.trino.plugin.raptor.legacy.RaptorMetadata.listSchemaNames(RaptorMetadata.java:170)
 at io.trino.spi.connector.ConnectorMetadata.schemaExists(ConnectorMetadata.java:93)
 at io.trino.tracing.TracingConnectorMetadata.schemaExists(TracingConnectorMetadata.java:123)
 at io.trino.metadata.MetadataManager.lambda$schemaExists$1(MetadataManager.java:241)
 at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
 at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212)
 at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:1034)
 at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:144)
 at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:574)
 at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:560)
 at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546)
 at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
 at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
 at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
 at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:647)
 at io.trino.metadata.MetadataManager.schemaExists(MetadataManager.java:241)
 at io.trino.tracing.TracingMetadata.schemaExists(TracingMetadata.java:163)
 at io.trino.execution.RenameSchemaTask.execute(RenameSchemaTask.java:66)
 at io.trino.execution.RenameSchemaTask.execute(RenameSchemaTask.java:36)
 at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
 at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
 at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
 at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
 at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
 at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
 at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
 at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
 at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
 at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
 ... 31 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
 at org.h2.message.DbException.get(DbException.java:212)
 at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
 at org.h2.mvstore.db.Store.<init>(Store.java:142)
 at org.h2.engine.Database.<init>(Database.java:326)
 at org.h2.engine.Engine.openSession(Engine.java:92)
 at org.h2.engine.Engine.openSession(Engine.java:222)
 at org.h2.engine.Engine.createSession(Engine.java:201)
 at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
 at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
 at org.h2.Driver.connect(Driver.java:59)
 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
 at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
 at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
 ... 32 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
 at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
 at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
 at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
 at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
 at org.h2.mvstore.FileStore.start(FileStore.java:918)
 at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
 at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
 at org.h2.mvstore.db.Store.<init>(Store.java:133)
 ... 43 more
Raw output
java.lang.AssertionError: 

Expecting message:
  "Failed to perform metadata operation"
to match regex:
  "This connector does not support renaming schemas"
but did not.

Throwable that failed the check:

io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:465)
	at io.trino.testing.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:445)
	at io.trino.testing.BaseConnectorTest.testRenameSchema(BaseConnectorTest.java:2194)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:766)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: ALTER SCHEMA tpch RENAME TO tpchm8jydw5lmh
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 40 more
	Suppressed: java.lang.Exception: Query: ALTER SCHEMA tpch RENAME TO tpchm8jydw5lmh
		at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:469)
		... 38 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.listSchemaNames(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.listSchemaNames(RaptorMetadata.java:170)
	at io.trino.spi.connector.ConnectorMetadata.schemaExists(ConnectorMetadata.java:93)
	at io.trino.tracing.TracingConnectorMetadata.schemaExists(TracingConnectorMetadata.java:123)
	at io.trino.metadata.MetadataManager.lambda$schemaExists$1(MetadataManager.java:241)
	at java.base/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212)
	at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:1034)
	at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:144)
	at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:574)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:560)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546)
	at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
	at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
	at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:647)
	at io.trino.metadata.MetadataManager.schemaExists(MetadataManager.java:241)
	at io.trino.tracing.TracingMetadata.schemaExists(TracingMetadata.java:163)
	at io.trino.execution.RenameSchemaTask.execute(RenameSchemaTask.java:66)
	at io.trino.execution.RenameSchemaTask.execute(RenameSchemaTask.java:36)
	at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 31 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 32 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 43 more

	at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:471)
	at io.trino.testing.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:445)
	at io.trino.testing.BaseConnectorTest.testRenameSchema(BaseConnectorTest.java:2194)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testAddNotNullColumnToEmptyTable

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.execute(DistributedQueryRunner.java:548)
	at io.trino.testing.QueryRunner.execute(QueryRunner.java:82)
	at io.trino.testing.sql.TestTable.createAndInsert(TestTable.java:52)
	at io.trino.testing.sql.TestTable.<init>(TestTable.java:47)
	at io.trino.testing.sql.TestTable.<init>(TestTable.java:39)
	at io.trino.testing.BaseConnectorTest.testAddNotNullColumnToEmptyTable(BaseConnectorTest.java:2349)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: CREATE TABLE test_add_nn_to_emptyixo2fqa7rw (a_varchar varchar)
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 18 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.execution.CreateTableTask.internalExecute(CreateTableTask.java:138)
	at io.trino.execution.CreateTableTask.execute(CreateTableTask.java:126)
	at io.trino.execution.CreateTableTask.execute(CreateTableTask.java:92)
	at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 23 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 24 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 35 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testMergeSubqueries

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedUpdate(QueryAssertions.java:108)
	at io.trino.testing.QueryAssertions.assertUpdate(QueryAssertions.java:62)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:410)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:405)
	at io.trino.testing.BaseConnectorTest.testMergeSubqueries(BaseConnectorTest.java:6576)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1532)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2267)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: CREATE TABLE merge_nation_target_vkydjdnj43 (nation_name VARCHAR, region_name VARCHAR)
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 19 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.execution.CreateTableTask.internalExecute(CreateTableTask.java:138)
	at io.trino.execution.CreateTableTask.execute(CreateTableTask.java:126)
	at io.trino.execution.CreateTableTask.execute(CreateTableTask.java:92)
	at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 23 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 24 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 35 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testCreateTableAsSelect

Execution of 'actual' query 20240916_002744_01765_tgbm5 failed: CREATE TABLE IF NOT EXISTS test_ctasbuv0nj85fn AS SELECT name, regionkey FROM nation
Raw output
java.lang.AssertionError: Execution of 'actual' query 20240916_002744_01765_tgbm5 failed: CREATE TABLE IF NOT EXISTS test_ctasbuv0nj85fn AS SELECT name, regionkey FROM nation
	at io.trino.testing.QueryAssertions.assertDistributedQuery(QueryAssertions.java:299)
	at io.trino.testing.QueryAssertions.assertQuery(QueryAssertions.java:187)
	at io.trino.testing.QueryAssertions.assertQuery(QueryAssertions.java:160)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:400)
	at io.trino.testing.AbstractTestQueryFramework.assertUpdate(AbstractTestQueryFramework.java:395)
	at io.trino.testing.BaseConnectorTest.testCreateTableAsSelect(BaseConnectorTest.java:3839)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
Caused by: io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertDistributedQuery(QueryAssertions.java:290)
	... 12 more
	Suppressed: java.lang.Exception: SQL: CREATE TABLE IF NOT EXISTS test_ctasbuv0nj85fn AS SELECT name, regionkey FROM nation
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 14 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:910)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.visitCreateTableAsSelect(StatementAnalyzer.java:520)
	at io.trino.sql.tree.CreateTableAsSelect.accept(CreateTableAsSelect.java:96)
	at io.trino.sql.tree.AstVisitor.process(AstVisitor.java:27)
	at io.trino.sql.analyzer.StatementAnalyzer$Visitor.process(StatementAnalyzer.java:539)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:499)
	at io.trino.sql.analyzer.StatementAnalyzer.analyze(StatementAnalyzer.java:488)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:98)
	at io.trino.sql.analyzer.Analyzer.analyze(Analyzer.java:87)
	at io.trino.execution.SqlQueryExecution.analyze(SqlQueryExecution.java:289)
	at io.trino.execution.SqlQueryExecution.<init>(SqlQueryExecution.java:222)
	at io.trino.execution.SqlQueryExecution$SqlQueryExecutionFactory.createQueryExecution(SqlQueryExecution.java:892)
	at io.trino.dispatcher.LocalDispatchQueryFactory.lambda$createDispatchQuery$0(LocalDispatchQueryFactory.java:153)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.call(Unknown Source)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:76)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 29 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 30 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 41 more

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testAddColumnWithComment

Expecting message:
  "Failed to perform metadata operation"
to match regex:
  "This connector does not support adding columns with comments"
but did not.

Throwable that failed the check:

io.trino.testing.QueryFailedException: Failed to perform metadata operation
 at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
 at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
 at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
 at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:465)
 at io.trino.testing.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:445)
 at io.trino.testing.BaseConnectorTest.testAddColumnWithComment(BaseConnectorTest.java:2329)
 at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
 at java.base/java.lang.reflect.Method.invoke(Method.java:580)
 at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:766)
 at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
 at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
 at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
 at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
 at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
 at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
 at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
 at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
 at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
 at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.joinConcurrentTasksInReverseOrderToEnableWorkStealing(ForkJoinPoolHierarchicalTestExecutorService.java:179)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.invokeAll(ForkJoinPoolHierarchicalTestExecutorService.java:153)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
 at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
 at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
 at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
 at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
 at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
 at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
 at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
 at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
 Suppressed: java.lang.Exception: SQL: ALTER TABLE nation ADD COLUMN test_add_col_desc bigint COMMENT 'test column comment'
  at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
  ... 56 more
 Suppressed: java.lang.Exception: Query: ALTER TABLE nation ADD COLUMN test_add_col_desc bigint COMMENT 'test column comment'
  at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:469)
  ... 54 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
 at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
 at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
 at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
 at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
 at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
 at java.base/java.util.Optional.flatMap(Optional.java:289)
 at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
 at io.trino.metadata.MetadataManager.getRedirectionAwareTableHandle(MetadataManager.java:1940)
 at io.trino.metadata.MetadataManager.getRedirectionAwareTableHandle(MetadataManager.java:1932)
 at io.trino.tracing.TracingMetadata.getRedirectionAwareTableHandle(TracingMetadata.java:1494)
 at io.trino.execution.AddColumnTask.execute(AddColumnTask.java:95)
 at io.trino.execution.AddColumnTask.execute(AddColumnTask.java:65)
 at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
 at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
 at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
 at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
 at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
 at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
 at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
 at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
 at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
 at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
 at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
 ... 23 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
 at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
 at org.h2.message.DbException.get(DbException.java:212)
 at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
 at org.h2.mvstore.db.Store.<init>(Store.java:142)
 at org.h2.engine.Database.<init>(Database.java:326)
 at org.h2.engine.Engine.openSession(Engine.java:92)
 at org.h2.engine.Engine.openSession(Engine.java:222)
 at org.h2.engine.Engine.createSession(Engine.java:201)
 at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
 at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
 at org.h2.Driver.connect(Driver.java:59)
 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
 at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
 at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
 at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
 ... 24 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
 at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
 at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
 at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
 at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
 at org.h2.mvstore.FileStore.start(FileStore.java:918)
 at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
 at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
 at org.h2.mvstore.db.Store.<init>(Store.java:133)
 ... 35 more
Raw output
java.lang.AssertionError: 

Expecting message:
  "Failed to perform metadata operation"
to match regex:
  "This connector does not support adding columns with comments"
but did not.

Throwable that failed the check:

io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.executeWithPlan(DistributedQueryRunner.java:554)
	at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:465)
	at io.trino.testing.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:445)
	at io.trino.testing.BaseConnectorTest.testAddColumnWithComment(BaseConnectorTest.java:2329)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:766)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.joinConcurrentTasksInReverseOrderToEnableWorkStealing(ForkJoinPoolHierarchicalTestExecutorService.java:179)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService.invokeAll(ForkJoinPoolHierarchicalTestExecutorService.java:153)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService$ExclusiveTask.compute(ForkJoinPoolHierarchicalTestExecutorService.java:202)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: ALTER TABLE nation ADD COLUMN test_add_col_desc bigint COMMENT 'test column comment'
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 56 more
	Suppressed: java.lang.Exception: Query: ALTER TABLE nation ADD COLUMN test_add_col_desc bigint COMMENT 'test column comment'
		at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:469)
		... 54 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getRedirectionAwareTableHandle(MetadataManager.java:1940)
	at io.trino.metadata.MetadataManager.getRedirectionAwareTableHandle(MetadataManager.java:1932)
	at io.trino.tracing.TracingMetadata.getRedirectionAwareTableHandle(TracingMetadata.java:1494)
	at io.trino.execution.AddColumnTask.execute(AddColumnTask.java:95)
	at io.trino.execution.AddColumnTask.execute(AddColumnTask.java:65)
	at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 23 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 24 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 35 more

	at io.trino.testing.QueryAssertions.assertQueryFails(QueryAssertions.java:471)
	at io.trino.testing.AbstractTestQueryFramework.assertQueryFails(AbstractTestQueryFramework.java:445)
	at io.trino.testing.BaseConnectorTest.testAddColumnWithComment(BaseConnectorTest.java:2329)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2324)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)

Check failure on line 1 in io/trino/plugin/raptor/legacy/TestRaptorBucketedConnectorTest

See this annotation in the file changed.

@github-actions github-actions / Test Report

TestRaptorBucketedConnectorTest.testInsertUnicode

Failed to perform metadata operation
Raw output
io.trino.testing.QueryFailedException: Failed to perform metadata operation
	at io.trino.testing.AbstractTestingTrinoClient.execute(AbstractTestingTrinoClient.java:134)
	at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:565)
	at io.trino.testing.DistributedQueryRunner.execute(DistributedQueryRunner.java:548)
	at io.trino.testing.QueryRunner.execute(QueryRunner.java:82)
	at io.trino.testing.sql.TestTable.createAndInsert(TestTable.java:52)
	at io.trino.testing.sql.TestTable.<init>(TestTable.java:47)
	at io.trino.testing.sql.TestTable.<init>(TestTable.java:39)
	at io.trino.testing.BaseConnectorTest.testInsertUnicode(BaseConnectorTest.java:4390)
	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:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1532)
	at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2267)
	at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
	at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
	at java.base/java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:194)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1489)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:2071)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2033)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
	Suppressed: java.lang.Exception: SQL: CREATE TABLE test_insert_unicode_ps7msq4psy (test varchar(50))
		at io.trino.testing.DistributedQueryRunner.executeInternal(DistributedQueryRunner.java:572)
		... 19 more
Caused by: io.trino.spi.TrinoException: Failed to perform metadata operation
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:86)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.metadataError(DatabaseUtil.java:91)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:55)
	at jdk.proxy2/jdk.proxy2.$Proxy115.getTableInformation(Unknown Source)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:186)
	at io.trino.plugin.raptor.legacy.RaptorMetadata.getTableHandle(RaptorMetadata.java:180)
	at io.trino.tracing.TracingConnectorMetadata.getTableHandle(TracingConnectorMetadata.java:141)
	at io.trino.metadata.MetadataManager.lambda$getTableHandle$5(MetadataManager.java:287)
	at java.base/java.util.Optional.flatMap(Optional.java:289)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:278)
	at io.trino.metadata.MetadataManager.getTableHandle(MetadataManager.java:267)
	at io.trino.tracing.TracingMetadata.getTableHandle(TracingMetadata.java:181)
	at io.trino.execution.CreateTableTask.internalExecute(CreateTableTask.java:138)
	at io.trino.execution.CreateTableTask.execute(CreateTableTask.java:126)
	at io.trino.execution.CreateTableTask.execute(CreateTableTask.java:92)
	at io.trino.execution.DataDefinitionExecution.start(DataDefinitionExecution.java:146)
	at io.trino.execution.SqlQueryManager.createQuery(SqlQueryManager.java:272)
	at io.trino.dispatcher.LocalDispatchQuery.startExecution(LocalDispatchQuery.java:150)
	at io.trino.dispatcher.LocalDispatchQuery.lambda$waitForMinimumWorkers$2(LocalDispatchQuery.java:134)
	at io.airlift.concurrent.MoreFutures.lambda$addSuccessCallback$12(MoreFutures.java:570)
	at io.airlift.concurrent.MoreFutures$3.onSuccess(MoreFutures.java:545)
	at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1137)
	at io.trino.$gen.Trino_testversion____20240916_002228_288.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: org.jdbi.v3.core.ConnectionException: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:393)
	at io.trino.plugin.raptor.legacy.util.DatabaseUtil.lambda$onDemandDao$0(DatabaseUtil.java:50)
	... 23 more
Caused by: org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: "/tmp/raptor-db5936284191536709638.mv.db". Possible solution: use the recovery tool [90030-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:690)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.mvstore.db.Store.convertMVStoreException(Store.java:163)
	at org.h2.mvstore.db.Store.<init>(Store.java:142)
	at org.h2.engine.Database.<init>(Database.java:326)
	at org.h2.engine.Engine.openSession(Engine.java:92)
	at org.h2.engine.Engine.openSession(Engine.java:222)
	at org.h2.engine.Engine.createSession(Engine.java:201)
	at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:344)
	at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:124)
	at org.h2.Driver.connect(Driver.java:59)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:682)
	at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:253)
	at io.trino.plugin.raptor.legacy.metadata.DatabaseMetadataModule$H2Module.lambda$createConnectionFactory$0(DatabaseMetadataModule.java:89)
	at org.jdbi.v3.core.Jdbi.open(Jdbi.java:366)
	... 24 more
Caused by: org.h2.mvstore.MVStoreException: Double mark: 78/2 [2-c, 78-78, 84-ae, b3-] [2.3.232/6]
	at org.h2.mvstore.DataUtils.newMVStoreException(DataUtils.java:996)
	at org.h2.mvstore.FreeSpaceBitSet.markUsed(FreeSpaceBitSet.java:182)
	at org.h2.mvstore.RandomAccessStore.markUsed(RandomAccessStore.java:75)
	at org.h2.mvstore.RandomAccessStore.readStoreHeader(RandomAccessStore.java:333)
	at org.h2.mvstore.FileStore.start(FileStore.java:918)
	at org.h2.mvstore.MVStore.<init>(MVStore.java:289)
	at org.h2.mvstore.MVStore$Builder.open(MVStore.java:2035)
	at org.h2.mvstore.db.Store.<init>(Store.java:133)
	... 35 more