yuqi1129 opened a new pull request, #14981: URL: https://github.com/apache/gravitino/pull/14981
### What changes were proposed in this pull request? Set `WRITE_DELAY=0` for MiniGravitino's default H2 database, resolving its file URL through `H2Database.getConnectionUrl`. Preserve explicit JDBC URLs from the configuration template or test overrides. Add tests that inspect a live H2 database's write-delay setting, verify assertions remain enabled, and cover explicit H2/MySQL/PostgreSQL URLs. ### Why are the changes needed? The [Spark embedded CI failure](https://github.com/yuqi1129/gravitino/actions/runs/43796944853/job/133074732060) is caused by the H2 2.2.224 MVStore assertion described in [H2 #4048](https://github.com/h2database/h2database/issues/4048). Its asynchronous writer can observe the chunk map and free-space bitmap between updates, panic, and close the metadata database. Synchronous writes avoid that asynchronous pipeline. This workaround applies to all default-H2 MiniGravitino suites and may add commit I/O. Tests with explicit JDBC URLs retain their chosen behavior. The bundled H2 version and production/deploy configurations remain unchanged. ### Does this PR introduce _any_ user-facing change? No. Only the embedded integration-test harness and its tests change. ### How was this patch tested? - `TestMiniGravitino` and `TestITUtils`: 17 tests passed, including 7 new cases. - Mutation check: restoring the previous 500 ms write delay makes both default-H2 cases fail (`expected 0, got 500`); restoring the fix passes. - A standalone probe against H2 2.2.224 confirms `WRITE_DELAY=0` leaves both serialization/save executors absent, while the default 500 ms setting creates them. - Spark 3.5 embedded `SparkIcebergCatalogHiveBackendIT35`: 47 cases, 45 passed and 2 skipped, with no failures; includes the originally failing row-level operations case. - Scoped Spotless formatting/checks and `git diff --check` passed. Local validation uses JDK 17 on macOS ARM64 with OrbStack; the full Linux Fork CI has not been run for this branch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
