-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.8.1
-
Fix Version/s: 3.0.0-beta1
-
Component/s: test
-
Labels:None
-
Target Version/s:
This is funny. The LsmbdaTestUtils.eventually() method, meant to spin until a closure stops raising exceptions, doesn't catch Error and subclasses, so doesn't fail on an Assert.assert() failure, which raises an AssertionError. My bad
Example:
eventually(TIMEOUT, () -> { while (counter.incrementAndGet() < 5) { assert false : "oops"; } }, retryLogic);
Fix: catch Throwable, rethrow. Needs to add VirtualMachineError & subclasses to the set of errors not to spin on (OOM, stack overflow, ...)
- is depended upon by
-
HADOOP-13271 Intermittent failure of TestS3AContractRootDir.testListEmptyRootDirectory
-
- Resolved
-
- is related to
-
HADOOP-14220 Enhance S3GuardTool with bucket-info and set-capacity commands, tests
-
- Resolved
-