Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
}

def healthyWorkingDirs(): List[File] =
disksSnapshot().filter(_.status == DiskStatus.HEALTHY).flatMap(_.dirs)
disksSnapshot()
.filter(diskInfo =>
(diskInfo.status == DiskStatus.HEALTHY) && (diskInfo.actualUsableSpace > 0))
.flatMap(_.dirs)
Comment thread
SteNicholas marked this conversation as resolved.
Outdated
Comment thread
SteNicholas marked this conversation as resolved.
Outdated

private val diskOperators: ConcurrentHashMap[String, ThreadPoolExecutor] = {
val cleaners = JavaUtils.newConcurrentHashMap[String, ThreadPoolExecutor]()
Expand Down Expand Up @@ -1139,7 +1142,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
while (retryCount < conf.workerCreateWriterMaxAttempts) {
val diskInfo = diskInfos.get(suggestedMountPoint)
val dirs =
if (diskInfo != null && diskInfo.status.equals(DiskStatus.HEALTHY)) {
if (diskInfo != null && diskInfo.status.equals(
DiskStatus.HEALTHY) && diskInfo.actualUsableSpace > 0) {
diskInfo.dirs
} else {
if (suggestedMountPoint.isEmpty) {
Comment thread
zaynt4606 marked this conversation as resolved.
Expand Down
Loading