This is an automated email from the ASF dual-hosted git repository.
yuqi4733 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 9149fe5e17 [#8107] improvement(H2): change H2 connection mode to
AUTO_SERVER (#8108)
9149fe5e17 is described below
commit 9149fe5e178165dca2fda8c1d7f3a993a6b7defb
Author: mchades <[email protected]>
AuthorDate: Fri Aug 15 11:16:57 2025 +0800
[#8107] improvement(H2): change H2 connection mode to AUTO_SERVER (#8108)
### 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
---
.../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;
}