[CELEBORN-2134] When creating a DiskFile, retrieve the storage type b…
…ased on the mount point ### What changes were proposed in this pull request? When creating a DiskFile, retrieve the storage type based on the mount point ### Why are the changes needed? If the worker disk is an SSD, it should be set to the SSD type, and the storage type can be retrieved based on the mount point. ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? CI Closes #3456 from xy2953396112/CELEBORN-2134. Authored-by: xxx <953396112@qq.com> Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
This commit is contained in:
parent
1be3094fb2
commit
db70473de2
@ -1175,12 +1175,13 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
|
||||
}
|
||||
val filePath = file.getAbsolutePath
|
||||
val fileMeta = getFileMeta(partitionType, mountPoint, conf.shuffleChunkSize)
|
||||
val storageType = diskInfos.get(mountPoint).storageType
|
||||
val diskFileInfo = new DiskFileInfo(
|
||||
userIdentifier,
|
||||
partitionSplitEnabled,
|
||||
fileMeta,
|
||||
filePath,
|
||||
StorageInfo.Type.HDD)
|
||||
storageType)
|
||||
logInfo(s"created file at $filePath")
|
||||
diskFileInfos.computeIfAbsent(shuffleKey, diskFileInfoMapFunc).put(
|
||||
fileName,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user