-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement-17480][Storage] Separate the local storage implementation from hdfs storage plugin #17547
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
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Dismissed
Show dismissed
Hide dismissed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Dismissed
Show dismissed
Hide dismissed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
8ae4ec3 to
4db52fb
Compare
4db52fb to
4231d3e
Compare
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Dismissed
Show dismissed
Hide dismissed
c4fcf45 to
413f399
Compare
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Dismissed
Show dismissed
Hide dismissed
3b8abf1 to
983927b
Compare
983927b to
3b8abf1
Compare
22e4f86 to
48dbdaf
Compare
27e1b18 to
0626b76
Compare
1f96990 to
327d9e9
Compare
| if (exists(directoryAbsolutePath)) { | ||
| throw new FileAlreadyExistsException("Directory already exists: " + directoryAbsolutePath); | ||
| } | ||
| Files.createDirectories(path); |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
This path depends on a
user-provided value
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
...src/main/java/org/apache/dolphinscheduler/plugin/storage/api/local/LocalStorageOperator.java
Fixed
Show fixed
Hide fixed
|
We have check the path in api, so the storage plugin don't need to check it again. |
eccf67c to
ec3ef80
Compare
|
CI failed. @ruanwenjun |
…n from hdfs storage plugin
ec3ef80 to
3be8605
Compare
| if (FileUtils.isDirectory(srcFile)) { | ||
| FileUtils.copyDirectoryToDirectory(srcFile, dstFile); | ||
| } else { | ||
| FileUtils.copyFile(srcFile, dstFile); |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
This path depends on a
user-provided value
This path depends on a
user-provided value
This path depends on a
user-provided value
This path depends on a
user-provided value
This path depends on a
user-provided value
This path depends on a
user-provided value
This path depends on a
user-provided value
…n from hdfs storage plugin
3be8605 to
c7c6fec
Compare
|
SbloodyS
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
…n from hdfs storage plugin (apache#17547)
|
`dolphinscheduler-storage-plugin/dolphinscheduler-storage-api/src/main/java/org/apache/dolphinscheduler/plugin/storage/api/AbstractStorageOperator.java `method exceptionIfPathNotUnderStorageBaseDir unused.where used? |


Purpose of the pull request
close #17480
close #17542
close #17459
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contains incompatible change, you should also add it to
docs/docs/en/guide/upgrade/incompatible.md