diff options
| author | Adrian Gonzalez <adriangonzalezmontemayor@gmail.com> | 2023-06-28 19:37:31 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-06-28 20:13:29 +0000 |
| commit | ca845553ea3b4b1f54ae3c3fc05a1d3a39cf3bd6 (patch) | |
| tree | c3f4a0decaaa26b7bf1c68adb0c36f5bf66a19ab | |
| parent | 3363bc37704f8b8c9f9120cd09e41882c9db184c (diff) | |
SERVER-77998 Allow 'full' when reading from /proc/pressure/cpur7.0.0-rc6
| -rw-r--r-- | src/mongo/util/procparser_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/procparser_test.cpp b/src/mongo/util/procparser_test.cpp index e2de69783da..399985f7295 100644 --- a/src/mongo/util/procparser_test.cpp +++ b/src/mongo/util/procparser_test.cpp @@ -1033,7 +1033,8 @@ TEST(FTDCProcPressure, TestLocalPressureInfo) { ASSERT(obj["cpu"]["some"]); ASSERT(obj["cpu"]["some"]["totalMicros"]); - ASSERT(!obj["cpu"]["full"]); + // After linux kernel 5.13, /proc/pressure/cpu includes 'full' filled with 0. + ASSERT(!obj["cpu"]["full"] || obj["cpu"]["full"]["totalMicros"].Double() == 0); } if (isPSISupported("/proc/pressure/memory")) { |
