Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.1
-
None
Description
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, ...)
Attachments
Attachments
Issue Links
- 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