-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CELEBORN-1802] Fail the celeborn master/worker start if CELEBORN_CONF_DIR is not directory #3030
Conversation
2cadbe8
to
25ecaa9
Compare
25ecaa9
to
66e8ab7
Compare
Maybe I can use the below commands in systemctl.d/supervisor.d directly.
|
reopen it incase someone think it is necessary |
This reverts commit 66e8ab7.
then | ||
echo "ERROR : CELEBORN_CONF_DIR: $CELEBORN_CONF_DIR is not a directory" | ||
exit 1 | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The celeborn-daemon.sh would load the celenorn-env.sh after checking the --config
option.
celeborn/sbin/celeborn-daemon.sh
Line 79 in fde6365
. "${CELEBORN_HOME}/sbin/load-celeborn-env.sh" |
So we just check it before run the start command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks @pan3793
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks. Merged into main(v0.6.0).
What changes were proposed in this pull request?
Fail the celeborn master/worker start if
CELEBORN_CONF_DIR
is not directory. Otherwise, the process would run into unexpected status.Why are the changes needed?
In the
celeborn-daemon.sh
, if we specify the--config <conf-dir>
option. It would fail the master/worker start if theconf-dir
is not a directory, likes the systemctlConditionPathExists=$CELEBORN_CONF_DIR
requirement check.celeborn/sbin/celeborn-daemon.sh
Line 35 in fde6365
celeborn/sbin/celeborn-daemon.sh
Lines 53 to 62 in fde6365
But before this PR, for the start master/worker scripts, it did not check if the
CELEBORN_CONF_DIR
is dirctory because the scripts did not leverage--config <conf-dir>
option.In this PR, we check the final
CELEBORN_CONF_DIR
before start celeborn, so that all the scripts would check if theCELEBORN_CONF_DIR
is a directory before start.Does this PR introduce any user-facing change?
Yes, it would fail the start if
CELEBORN_CONF_DIR
is not a directory.How was this patch tested?