feat: upgrade to Java 25 and replace OrientDB with H2#4095
Closed
cthiebault wants to merge 4 commits intoobiba:masterfrom
Closed
feat: upgrade to Java 25 and replace OrientDB with H2#4095cthiebault wants to merge 4 commits intoobiba:masterfrom
cthiebault wants to merge 4 commits intoobiba:masterfrom
Conversation
OrientDB is incompatible with Java 22+ due to removed sun.misc.Unsafe.ensureClassInitialized method. This commit: - Upgrades Java version from 21 to 25 - Replaces OrientDB 3.2.45 with H2 2.2.224 for config storage - Creates H2OrientDbServiceImpl with JSON document storage - Updates CI workflow for Java 25 - Updates Debian package dependencies The H2 implementation maintains the same OrientDbService interface and stores entities as JSON documents in a single 'documents' table.
GraalVM 21.x uses sun.misc.Unsafe.ensureClassInitialized which was removed in Java 22+. Updated to GraalVM 25.0.1 with new artifact coordinates: - org.graalvm.sdk:graal-sdk → org.graalvm.polyglot:polyglot - org.graalvm.js:js → org.graalvm.polyglot:js-community Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove DROP ALL OBJECTS from stop() to prevent data loss on restart - Add upgrade notes for Java 25 + H2 migration (v5.5) - Document two-step migration: export with Opal 5.4/Java 21, import with 5.5/Java 25
1bca0ab to
5b1a387
Compare
- Add Maven wrapper (mvnw) for reproducible builds without pre-installed Maven - Update Makefile to use ./mvnw instead of system mvn - Add CLAUDE.md with project overview and development instructions - Update .gitignore for Claude Code local settings
5b1a387 to
be17538
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sun.misc.Unsafe.ensureClassInitializedmethodOrientDbServiceinterfacedocumentstableChanges
New files:
H2OrientDbServerFactory.java- H2 connection pool and schema initializationH2OrientDbServiceImpl.java- H2 implementation of OrientDbService with JSON document storageDeleted files:
OrientDbServiceImpl.java- OrientDB implementationLocalOrientDbServerFactory.java- OrientDB server factoryTimestampedHook.java- OrientDB hook for timestampsSimpleOrientDbQueryBuilder.java- OrientDB query builderorientdb-server-config.xml- OrientDB configurationModified:
pom.xmlfiles - Updated dependencies (removed OrientDB, added H2)ci.yml- Updated to Java 25debian/control- Updated Java dependency to openjdk-25Jira Ticket
N/A
Security Impact
Security notes: This change replaces the database implementation for configuration storage but maintains the same security model. No changes to authentication, authorization, or data handling logic.