From 34d324de6c90c9496bf3239ae409c5334b93a324 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Tue, 21 Mar 2023 23:17:01 +0100 Subject: [PATCH] Disable testReadMetadataWithRelationsConcurrentModifications on H2 because of flakes Under concurrently, H2 sometimes returns null table name in `DatabaseMetaData.getTables`'s `ResultSet`. --- .../java/io/trino/plugin/jdbc/TestJdbcConnectorTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestJdbcConnectorTest.java b/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestJdbcConnectorTest.java index e9dda09e8e7b..501314927e5f 100644 --- a/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestJdbcConnectorTest.java +++ b/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestJdbcConnectorTest.java @@ -140,6 +140,14 @@ public void testDeleteWithLike() .hasStackTraceContaining("TrinoException: " + MODIFYING_ROWS_MESSAGE); } + @Override + public void testReadMetadataWithRelationsConcurrentModifications() + { + // Under concurrently, H2 sometimes returns null table name in DatabaseMetaData.getTables's ResultSet + // See https://github.com/trinodb/trino/issues/16658 for more information + throw new SkipException("Skipped due to H2 problems"); + } + @Test public void testUnknownTypeAsIgnored() {