[NO ISSUE][MISC] Preserve Error instances on retryUntilSuccessOrExhausted
authorMichael Blow <mblow@apache.org>
Sun, 16 May 2021 13:24:27 +0000 (09:24 -0400)
committerMichael Blow <mblow@apache.org>
Mon, 17 May 2021 11:06:32 +0000 (11:06 +0000)
commitdec84265a802476cf31d25d374cfd6511e0016c7
tree9786bef475d8048eb1e3b12a4256fa30d2160e09
parent86da3f820f9e59fe5382dc42c54b0828cc9aecb8
[NO ISSUE][MISC] Preserve Error instances on retryUntilSuccessOrExhausted

Prior to this change, InvokeUtil.retryUntilSuccessOrExhausted() would wrap instances of
java.lang.Error with HyracksDataException upon exhaustion of retry attempts.  Errors are
typically handled differently than non-Errors, so preserve the Error when propagating
the failure to the caller.

Change-Id: Idfe1d443addaed342b0c0ed3a0a3835ad226dbe7
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/11483
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mblow@apache.org>
Reviewed-by: Hussain Towaileb <hussainht@gmail.com>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/util/InvokeUtil.java