Commit 9481bd4 1 parent b55ee3d commit 9481bd4 Copy full SHA for 9481bd4
File tree 1 file changed +7
-0
lines changed
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,17 @@ public static void createWarehouseAndStartRest() throws IOException {
79
79
// prevent using already-in-use port when testing
80
80
System .setProperty ("rest.port" , String .valueOf (MetaStoreUtils .findFreePort ()));
81
81
System .setProperty (CatalogProperties .WAREHOUSE_LOCATION , warehouse .getAbsolutePath ());
82
+ // In-memory sqlite database by default is private to the connection that created it.
83
+ // If more than 1 jdbc connection backed by in-memory sqlite is created behind one
84
+ // JdbcCatalog, then different jdbc connections could provide different views of table
85
+ // status even belonging to the same catalog. Reference:
86
+ // https://www.sqlite.org/inmemorydb.html
87
+ System .setProperty (CatalogProperties .CLIENT_POOL_SIZE , "1" );
82
88
restServer .start (false );
83
89
restCatalog = RCKUtils .initCatalogClient ();
84
90
System .clearProperty ("rest.port" );
85
91
System .clearProperty (CatalogProperties .WAREHOUSE_LOCATION );
92
+ System .clearProperty (CatalogProperties .CLIENT_POOL_SIZE );
86
93
} catch (Exception e ) {
87
94
throw new RuntimeException (e );
88
95
}
You can’t perform that action at this time.
0 commit comments