You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2019/04/18 00:36:32 UTC

[incubator-iceberg] branch master updated: Break early if exception matches onlyRetryExceptions. (#163)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 11db393  Break early if exception matches onlyRetryExceptions. (#163)
11db393 is described below

commit 11db393d4640f03b0db37a53459313e87eb8bbb1
Author: Xiao Chen <xi...@users.noreply.github.com>
AuthorDate: Wed Apr 17 17:36:28 2019 -0700

    Break early if exception matches onlyRetryExceptions. (#163)
---
 core/src/main/java/org/apache/iceberg/util/Tasks.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/src/main/java/org/apache/iceberg/util/Tasks.java b/core/src/main/java/org/apache/iceberg/util/Tasks.java
index 3475e85..3695220 100644
--- a/core/src/main/java/org/apache/iceberg/util/Tasks.java
+++ b/core/src/main/java/org/apache/iceberg/util/Tasks.java
@@ -410,6 +410,7 @@ public class Tasks {
             for (Class<? extends Exception> exClass : onlyRetryExceptions) {
               if (exClass.isInstance(e)) {
                 matchedRetryException = true;
+                break;
               }
             }
             if (!matchedRetryException) {