-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-23089][STS] Recreate session log directory if it doesn't exist #20281
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
Conversation
|
Test build #86195 has finished for PR 20281 at commit
|
|
LGTM. So looks like the fix is exactly the same as Hive. |
|
@cloud-fan would you please take another look on this? |
|
LGTM, cc @gatorsmile |
|
@gatorsmile , do you have further comment? |
jiangxb1987
left a comment
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
| @Override | ||
| public void setOperationLogSessionDir(File operationLogRootDir) { | ||
| if (!operationLogRootDir.exists()) { | ||
| LOG.warn("The operation log root directory is removed, recreating:" + |
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.
nit: extra space at the end of line
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.
sorry @jiangxb1987 I can't see any extra space at the end of this line...
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.
we need an extra space: ... recreating: " +
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.
oh sorry, now I understand, thanks! Yes, in Hive this space is still missing, I see only now. Thanks.
|
Test build #86385 has finished for PR 20281 at commit
|
|
thanks, merging to master/2.3! |
## What changes were proposed in this pull request? When creating a session directory, Thrift should create the parent directory (i.e. /tmp/base_session_log_dir) if it is not present. It is common that many tools delete empty directories, so the directory may be deleted. This can cause the session log to be disabled. This was fixed in HIVE-12262: this PR brings it in Spark too. ## How was this patch tested? manual tests Author: Marco Gaido <[email protected]> Closes #20281 from mgaido91/SPARK-23089. (cherry picked from commit e41400c) Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
When creating a session directory, Thrift should create the parent directory (i.e. /tmp/base_session_log_dir) if it is not present. It is common that many tools delete empty directories, so the directory may be deleted. This can cause the session log to be disabled.
This was fixed in HIVE-12262: this PR brings it in Spark too.
How was this patch tested?
manual tests