-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Extract path resolution in DoraCacheFS into static utility #18140
Conversation
} | ||
|
||
// Treat this path as Alluxio relative, and add the UFS root before it. | ||
String ufsFullPath = PathUtils.concatPath(ufsRootPath, alluxioPath.toString()); |
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.
String ufsFullPath = PathUtils.concatPath(ufsRootPath, alluxioPath.toString()); | |
String ufsFullPath = PathUtils.concatPath(ufsRootPath, alluxioPath.getPath()); |
if (alluxioPath.isRoot()) { | ||
ufsFullPath = ufsFullPath + AlluxioURI.SEPARATOR; | ||
} |
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.
what is this supposed to do?
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.
i don't know, this is a refactor
The only errors are
|
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
119e460
to
2c6166a
Compare
alluxio-bot, merge this please |
What changes are proposed in this pull request?
In this change the path conversion logic is extracted to static utility methods for code reuse (because other classes may use the same path resolution logic).
The method names are slightly improved, to distinguish the member methods in
DoraCacheFileSystem
(may be inherited) from the static utility methods.