From 3101931e087d3868fb013295066b3fbc0ff332fc Mon Sep 17 00:00:00 2001 From: Brandon Duffany Date: Wed, 13 Nov 2024 13:58:19 -0800 Subject: [PATCH] Ignore unknown device numbers in io.stat (#7894) --- enterprise/server/remote_execution/cgroup/cgroup.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/enterprise/server/remote_execution/cgroup/cgroup.go b/enterprise/server/remote_execution/cgroup/cgroup.go index 62619bc542e..737916a1908 100644 --- a/enterprise/server/remote_execution/cgroup/cgroup.go +++ b/enterprise/server/remote_execution/cgroup/cgroup.go @@ -347,6 +347,10 @@ func readIOStat(r io.Reader) ([]*repb.CgroupIOStats, error) { return nil, fmt.Errorf("fields unexpectedly empty") } dev := fields[0] + if dev == "(unknown)" { + // TODO(bduffany): figure out what these "(unknown)" devices are + continue + } majStr, minStr, ok := strings.Cut(dev, ":") if !ok { return nil, fmt.Errorf("malformed device field")