github-actions[bot] commented on PR #45269: URL: https://github.com/apache/doris/pull/45269#issuecomment-2532207108
#### `sh-checker report` To get the full details, please check in the [job]("https://github.com/apache/doris/actions/runs/12260363059";) output. <details> <summary>shellcheck errors</summary> ``` 'shellcheck ' found no issues. ``` </details> <details> <summary>shfmt errors</summary> ``` 'shfmt ' returned error 1 finding the following formatting issues: ---------- --- bin/start_be.sh.orig +++ bin/start_be.sh @@ -190,28 +190,28 @@ fi if [[ "${RUN_SKIP}" -eq 0 ]]; then - if [[ "$(uname -s)" != 'Darwin' ]]; then - MAX_MAP_COUNT="$(cat /proc/sys/vm/max_map_count)" - if [[ "${MAX_MAP_COUNT}" -lt 2000000 ]]; then - echo "Set kernel parameter 'vm.max_map_count' to a value greater than 2000000, example: 'sysctl -w vm.max_map_count=2000000'" - exit 1 - fi + if [[ "$(uname -s)" != 'Darwin' ]]; then + MAX_MAP_COUNT="$(cat /proc/sys/vm/max_map_count)" + if [[ "${MAX_MAP_COUNT}" -lt 2000000 ]]; then + echo "Set kernel parameter 'vm.max_map_count' to a value greater than 2000000, example: 'sysctl -w vm.max_map_count=2000000'" + exit 1 + fi - if [[ "$(swapon -s | wc -l)" -gt 1 ]]; then - echo "Disable swap memory before starting be" - exit 1 - fi - fi + if [[ "$(swapon -s | wc -l)" -gt 1 ]]; then + echo "Disable swap memory before starting be" + exit 1 + fi + fi - MAX_FILE_COUNT="$(ulimit -n)" - if [[ "${MAX_FILE_COUNT}" -lt 60000 ]]; then - echo "Set max number of open file descriptors to a value greater than 60000." - echo "Ask your system manager to modify /etc/security/limits.conf and append content like" - echo " * soft nofile 655350" - echo " * hard nofile 655350" - echo "and then run 'ulimit -n 655350' to take effect on current session." - exit 1 - fi + MAX_FILE_COUNT="$(ulimit -n)" + if [[ "${MAX_FILE_COUNT}" -lt 60000 ]]; then + echo "Set max number of open file descriptors to a value greater than 60000." + echo "Ask your system manager to modify /etc/security/limits.conf and append content like" + echo " * soft nofile 655350" + echo " * hard nofile 655350" + echo "and then run 'ulimit -n 655350' to take effect on current session." + exit 1 + fi fi # add java libs ---------- You can reformat the above files to meet shfmt's requirements by typing: shfmt -w filename ``` </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org