Skip to content
Permalink
Browse files
[NO ISSUE][HYR][UTIL] Abort retries on expired span no retry delay
Change-Id: I2f56cc23c5a869e76241f1ac303cf57a14714182
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/10923
Reviewed-by: Michael Blow <mblow@apache.org>
Reviewed-by: Ian Maxon <imaxon@uci.edu>
Reviewed-by: Hussain Towaileb <hussainht@gmail.com>
Tested-by: Michael Blow <mblow@apache.org>
  • Loading branch information
mblow committed Apr 6, 2021
1 parent d821af0 commit 244c3c5e8c12f5ab7699609fdc47ffad6d2675b0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -278,7 +278,7 @@ public static <T> T retryUntilSuccessOrExhausted(Span span, ComputingAction<T> a
failure = th;
try {
long delayMs = delay.calculate(attempt);
if (!policy.retry(th) || span.remaining(TimeUnit.MILLISECONDS) < delayMs) {
if (!policy.retry(th) || span.elapsed() || span.remaining(TimeUnit.MILLISECONDS) < delayMs) {
onFailure.attemptFailed(action, attempt, true, span, failure);
throw HyracksDataException.create(failure);
} else {

0 comments on commit 244c3c5

Please sign in to comment.