diff --git a/agent/error.go b/agent/error.go index b2f31bb5..ef4bd942 100644 --- a/agent/error.go +++ b/agent/error.go @@ -18,8 +18,8 @@ import ( ) // isRetryableMountError will check to see if the error passed in is an -// syscall.EINVAL +// syscall.EINVAL or syscall.ENOMEM func isRetryableMountError(err error) bool { errno, ok := err.(syscall.Errno) - return ok && errno == syscall.EINVAL + return ok && (errno == syscall.EINVAL || errno == syscall.ENOMEM) } diff --git a/agent/error_test.go b/agent/error_test.go index 1c5878b0..74ab02a3 100644 --- a/agent/error_test.go +++ b/agent/error_test.go @@ -37,6 +37,11 @@ func TestIsRetryableMountError(t *testing.T) { Error: syscall.EINVAL, Expected: true, }, + { + Name: "syscall.Errno ENOMEM case", + Error: syscall.ENOMEM, + Expected: true, + }, { Name: "syscall.Errno ENOENT case", Error: syscall.ENOENT,