8361897: gc/z/TestUncommit.java fails with Uncommitted too slow

Reviewed-by: stefank, jsikstro
This commit is contained in:
Axel Boldt-Christmas 2025-07-31 13:08:29 +00:00
parent ddb64836e5
commit 3f21c8bd1f

View File

@ -108,7 +108,16 @@ public class TestUncommit {
throw new Exception("Uncommitted too fast");
}
// In typical conditions (system not over-provisioned or slow),
// uncommitting is expected to complete within 3 * ZUncommitDelay after
// the last commit. To accommodate less ideal environments, only
// durations exceeding 5 * ZUncommitDelay are flagged as errors.
if (actualDelay > delay * 3) {
log(" *** Uncommit slower than expected. ***");
}
if (actualDelay > delay * 5) {
throw new Exception("Uncommitted too slow");
}