Skip to content

Commit

Permalink
[CELEBORN-1467] celeborn.worker.storage.dirs should support soft link
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
`celeborn.worker.storage.dirs` supports soft link

### Why are the changes needed?
NPE will be thrown when StorageManager.createWriter if `celeborn.worker.storage.dirs` contains soft link.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing uts.

Closes apache#2576 from leixm/CELEBORN-1467.

Authored-by: Xianming Lei <[email protected]>
Signed-off-by: mingji <[email protected]>
  • Loading branch information
leixm authored and FMX committed Jun 19, 2024
1 parent 627ee8c commit 759638e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ object DeviceInfo {
val deviceInfo = mountPointToDeviceInfo.get(mountPoint)
val diskInfo = new DiskInfo(
mountPoint,
dirs.map(_._1).toList,
dirs.map { workingDir =>
new File(workingDir._1.getCanonicalPath)
}.toList,
deviceInfo,
conf)
val (_, maxUsableSpace, threadCount, storageType) = dirs(0)
Expand Down

0 comments on commit 759638e

Please sign in to comment.