← Back to Pull requests

feat(server): support build & use(RocksDB) on RISC-V #3102

Closed
unknown closed this pull request without merging on Jul 25, 2026 05:45 UTC
View on GitHub
unknown unknown commented on Jul 21, 2026 13:56 UTC
Author

Purpose of the PR

  • Address the HugeGraph Server + RocksDB linux/riscv64 build and minimum runtime

  • support tracked by #3099.
  • Keep the change isolated from the existing Docker image design and from the JDK,

  • build, and test paths used by other architectures.

    Main Changes

  • Add an opt-in -Drocksdb-only distribution selection. CI uses Maven's existing

  • -pl ... -am project selection so unrelated storage implementations are not built or
    packaged; the default reactor and distribution remain unchanged.
  • Upgrade Maven architecture detection and use compatible system protoc and

  • grpc_java_plugin executables only in the automatically activated RISC-V profiles.
  • Automatically preload an installed libatomic.so.1 before the Server, InitStore, or

  • StoreDumper JVM opens RocksDB on linux/riscv64, fixing the unresolved JNI atomic
    symbol in each distribution launcher.
  • Add reusable JNI and Server smoke helpers covering RocksDB put/get/reopen, REST schema

  • and graph data, Gremlin, shutdown, a real store dump, restart, and persistence.
  • Add an isolated reusable RISC-V workflow, invoked as a separate Server CI job. It runs

  • a clean native RISC-V Maven build and the runtime smoke under QEMU with a
    checksum-pinned Alibaba Dragonwell 11 Extended Server VM.
  • Document the supported ABI, native build commands, CI/QEMU boundary, and the fact that

  • the official HugeGraph Dockerfile and published image are not changed by this PR.

    Scope Boundaries

  • No official Dockerfile, entrypoint, Docker Build CI, or image publication changes.

  • No JDK or test changes for amd64, arm64, or other existing architectures.

  • No RISC-V support claim for HBase, Cassandra, HStore, PD, Store, or other backends.

  • QEMU is a correctness gate, not a performance result.
  • Validation

  • Default Java 11 build: 43/43 reactor modules passed; the existing backend JARs

  • remained in the normal distribution.
  • Exact-head native RISC-V clean RocksDB-only build passed all 16 selected projects

  • from clean source; protobuf and gRPC Java sources were regenerated with the documented
    system tools.
  • Exact-head native RISC-V runtime on Dragonwell 11 Server VM passed RocksDB JNI

  • put/get/reopen, REST schema/vertices/edge, Gremlin, both shutdowns, the no-argument
    dump-store.sh path with both current-run vertices, restart persistence, and final
    process/port cleanup.
  • During implementation, the broader native RISC-V Core suite passed 794 tests with

  • 0 failures and 0 errors (41 skipped), and the API suite passed 161 tests with
    0 failures and 0 errors (14 skipped) with a valid JaCoCo XML report. These suites are
    supporting evidence, not represented as exact-head hosted CI.
  • Workflow YAML, ShellCheck, Bash syntax, XML/RAT, default-profile regression,

  • distribution-boundary, and git diff --check validation passed.
  • Current-head org Server CI

  • 30093815746 passed,
    including the native RISC-V clean build, distribution boundary, JNI, REST/Gremlin,
    restart persistence, shutdown, and container cleanup
    job.
  • Current-head org

  • PD/Store/HStore CI
    passed.
  • Current-head Apache workflows are awaiting maintainer approval; no exact-head check

  • runs are registered yet.

    Compatibility

  • Existing Server CI still runs its original memory, RocksDB, HBase, and two macOS Java

  • 11 jobs unchanged; the RISC-V workflow is an additional isolated job.
  • The default Maven invocation still activates the existing memory and core-test

  • profiles and retains the complete module set.
  • The RISC-V path requires 64-bit glibc Linux (LP64D), Dragonwell 11 Extended, and an

  • installed libatomic.so.1.

    Residual Risks

  • Native end-to-end validation used Ubuntu 24.04 with glibc 2.39. GLIBC_2.30 is

  • only the highest symbol version referenced by the packaged rocksdbjni:8.10.2 RISC-V
    ELF, not a validated compatibility floor for the complete runtime.
  • QEMU and the available native machine validate correctness, not sustained production

  • load or performance.
  • Official multi-architecture image design and publication remain separate work.
  • Diff: 543 lines (+407 / -136) across 6 files Reviewer: Seanium Review duration: 5269m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 543 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.377
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3102"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48% (MEDIUM) · Higher = larger blast radius
    48%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.0% · Safe to merge
    19.0%