-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1290] improvement(operator): Avoid accidentally deleting data of ot…
…her services when misconfiguring the mounting directory (#1291) ### What changes were proposed in this pull request? Only delete `rssdata` directory. ### Why are the changes needed? Fix: #1290 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Tested in our cluster. 1. Mount `/data/hdfs1/rssdata1` dir for shuffle server,the server will create `/data/hdfs1/rssdata1/rssdata/` 2. Create files manually at host machine ``` touch /data/hdfs1/rssdata1/a.txt touch /data/hdfs1/rssdata1/rssdata/b.txt ``` 3. Update crd to terminate this shuffle server. 4. Without this pr, both `a.txt`, `b.txt` and `rssdata` dir are deleted 5. With this pr, only `b.txt` is deleted Co-authored-by: 齐家乐(26731624) <[email protected]> (cherry picked from commit be10697)
- Loading branch information
1 parent
42b5c21
commit cf25897
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters