DeviceMonitor init failed because of NPE. (#608)

This commit is contained in:
xunxunmimi5577 2022-09-18 20:24:04 +08:00 committed by GitHub
parent 979c22a430
commit 2cc47ccfa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ object DeviceInfo {
val deviceNameToDeviceInfo = new util.HashMap[String, DeviceInfo]()
val mountPointToDeviceInfo = new util.HashMap[String, DeviceInfo]()
val dfResult = runCommand("df -h").trim
val dfResult = runCommand("df -ah").trim
logger.info(s"df result $dfResult")
// (/dev/vdb, /mnt/disk1)
val fsMounts = dfResult

View File

@ -35,7 +35,7 @@ import com.aliyun.emr.rss.common.protocol.StorageInfo
import com.aliyun.emr.rss.common.util.Utils
class DeviceMonitorSuite extends AnyFunSuite {
val dfCmd = "df -h"
val dfCmd = "df -ah"
val dfOut =
"""
|Filesystem Size Used Avail Use% Mounted on