-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[BugFix] Make create_directories compatible with symbolic links #50858
Conversation
link to #45518 |
0e600d7
to
a6b10ce
Compare
@mergify rebase |
Signed-off-by: Dejun Xia <[email protected]>
Signed-off-by: Dejun Xia <[email protected]>
Signed-off-by: Dejun Xia <[email protected]>
✅ Branch has been successfully rebased |
a6b10ce
to
60193f2
Compare
Signed-off-by: Dejun Xia <[email protected]>
Signed-off-by: Dejun Xia <[email protected]>
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.
thought this PR was merged long time ago...
Signed-off-by: Dejun Xia <[email protected]>
Signed-off-by: Dejun Xia <[email protected]>
[FE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]❌ fail : 6 / 8 (75.00%) file detail
|
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
create_directories() should be compatible with the scenario where dirname exists as a symbolic link and linked to an existing directory. On CentOS create_directories() will fail in this situation, but on Ubuntu, it won't. So we make a precheck here in order to have the same expected behavior on both and probably all the other platforms. Signed-off-by: Dejun Xia <[email protected]> (cherry picked from commit 3271d90)
create_directories() should be compatible with the scenario where dirname exists as a symbolic link and linked to an existing directory. On CentOS create_directories() will fail in this situation, but on Ubuntu, it won't. So we make a precheck here in order to have the same expected behavior on both and probably all the other platforms. Signed-off-by: Dejun Xia <[email protected]> (cherry picked from commit 3271d90)
create_directories() should be compatible with the scenario where dirname exists as a symbolic link and linked to an existing directory. On CentOS create_directories() will fail in this situation, but on Ubuntu, it won't. So we make a precheck here in order to have the same expected behavior on both and probably all the other platforms. Signed-off-by: Dejun Xia <[email protected]> (cherry picked from commit 3271d90)
…port #50858) (#51332) Co-authored-by: yiming <[email protected]>
…port #50858) (#51333) Co-authored-by: yiming <[email protected]>
…port #50858) (#51334) Co-authored-by: yiming <[email protected]>
…Rocks#50858) create_directories() should be compatible with the scenario where dirname exists as a symbolic link and linked to an existing directory. On CentOS create_directories() will fail in this situation, but on Ubuntu, it won't. So we make a precheck here in order to have the same expected behavior on both and probably all the other platforms. Signed-off-by: Dejun Xia <[email protected]> Signed-off-by: zhiminr.ren <[email protected]>
Why I'm doing:
What I'm doing:
create_directories() should be compatible with the scenario where
dirname
exists as a symbolic linkand linked to an existing directory. On CentOS create_directories() will fail in this situation,
but on Ubuntu, it won't. So we make a precheck here in order to have the same expected behavior
on both and probably all the other platforms.
Fixes #45518
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: