This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new 936996aba0 [#8107] improvement(H2): change H2 connection mode to
AUTO_SERVER (#8111)
936996aba0 is described below
commit 936996aba0f38f006a1f96d10477aa1ab0d6b15e
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Aug 15 15:11:27 2025 +0800
[#8107] improvement(H2): change H2 connection mode to AUTO_SERVER (#8111)
### What changes were proposed in this pull request?
change H2 connection mode to AUTO_SERVER
### Why are the changes needed?
Fix: #8107
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
local tested
Co-authored-by: mchades <[email protected]>
---
.../org/apache/gravitino/storage/relational/database/H2Database.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/core/src/main/java/org/apache/gravitino/storage/relational/database/H2Database.java
b/core/src/main/java/org/apache/gravitino/storage/relational/database/H2Database.java
index da6e7a6356..752b273bb4 100644
---
a/core/src/main/java/org/apache/gravitino/storage/relational/database/H2Database.java
+++
b/core/src/main/java/org/apache/gravitino/storage/relational/database/H2Database.java
@@ -90,6 +90,10 @@ public class H2Database implements JDBCDatabase {
originURI = originURI + ";MODE=MYSQL";
}
+ if (!originURI.contains("AUTO_SERVER")) {
+ originURI = originURI + ";AUTO_SERVER=TRUE";
+ }
+
return originURI;
}