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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 96aec9c135525beed69fea4f88682e906df174ff
Author: zzzzzzzs <1443539...@qq.com>
AuthorDate: Tue Sep 5 09:39:55 2023 +0800

    [Improve](be)check swap (#18891)
    
    
    
    Co-authored-by: Yongqiang YANG 
<98214048+dataroar...@users.noreply.github.com>
---
 bin/start_be.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index daace4812f..0af43edfa9 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -77,6 +77,11 @@ if [[ "${MAX_FILE_COUNT}" -lt 65536 ]]; then
     exit 1
 fi
 
+if [[ "$(swapon -s | wc -l)" -gt 1 ]]; then
+    echo "Please disable swap memory before installation."
+    exit 1
+fi
+
 # add java libs
 preload_jars=("preload-extensions")
 preload_jars+=("java-udf")


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to