Skip to content

Commit f48b7b2

Browse files
[feature](selectdb-cloud) Fix start_fe.sh --version (apache#1106)
1 parent f452c9e commit f48b7b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/start_fe.sh

+6
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ for f in "${DORIS_HOME}/lib"/*.jar; do
167167
done
168168
export CLASSPATH="${CLASSPATH}:${DORIS_HOME}/lib:${DORIS_HOME}/conf"
169169

170+
if [[ "${OPT_VERSION}" != "" ]]; then
171+
export DORIS_LOG_TO_STDERR=1
172+
"${JAVA}" -XX:OnOutOfMemoryError="kill -9 %p" org.apache.doris.PaloFe ${OPT_VERSION:+${OPT_VERSION}} "$@" </dev/null
173+
exit 0
174+
fi
175+
170176
pidfile="${PID_DIR}/fe.pid"
171177

172178
if [[ -f "${pidfile}" ]]; then

0 commit comments

Comments
 (0)