This is an automated email from the ASF dual-hosted git repository.

zyxxoo pushed a commit to branch refactor/rust-rewrite-design
in repository https://gitbox.apache.org/repos/asf/hugegraph.git


The following commit(s) were added to refs/heads/refactor/rust-rewrite-design 
by this push:
     new 9b69d540c fix(store): support offline startup without jemalloc download
9b69d540c is described below

commit 9b69d540ccb46f5d21207c4db9a39088b83ba9a1
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 17:21:09 2026 +0800

    fix(store): support offline startup without jemalloc download
---
 .../hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
 
b/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
index 88165e47b..7463fef15 100755
--- 
a/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
+++ 
b/hugegraph-store/hg-store-dist/src/assembly/static/bin/start-hugegraph-store.sh
@@ -42,6 +42,12 @@ PID_FILE="$BIN/pid"
 arch=$(uname -m)
 echo "Current arch: $arch"
 
+# Offline/test environments may provide a compatible allocator or prefer the
+# JVM allocator.  Avoid an unconditional GitHub download in that case.
+if [[ "${HUGEGRAPH_SKIP_JEMALLOC:-false}" == "true" ]]; then
+    echo "Skipping jemalloc download (HUGEGRAPH_SKIP_JEMALLOC=true)"
+else
+
 if [[ $arch == "aarch64" || $arch == "arm64" ]]; then
     lib_file="$TOP/bin/libjemalloc_aarch64.so"
     
download_url="${GITHUB}/apache/hugegraph-doc/raw/binary-1.5/dist/server/libjemalloc_aarch64.so"
@@ -63,6 +69,7 @@ elif [[ $arch == "x86_64" ]]; then
 else
     echo "Unsupported architecture: $arch"
 fi
+fi
 
 ##pd/store max user processes, ulimit -u
 # Reduce the maximum number of processes that can be opened by a normal 
dev/user

Reply via email to