# ignite-sprint-4 added put retries in test
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/77b802cc Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/77b802cc Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/77b802cc Branch: refs/heads/ignite-738 Commit: 77b802ccad5ffd688ebb338cdda412809f1c0233 Parents: 8b90451 Author: sboikov <sboi...@gridgain.com> Authored: Wed Apr 15 11:24:28 2015 +0300 Committer: sboikov <sboi...@gridgain.com> Committed: Wed Apr 15 11:24:28 2015 +0300 ---------------------------------------------------------------------- .../ignite/internal/processors/cache/GridCachePutAllTask.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/77b802cc/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCachePutAllTask.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCachePutAllTask.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCachePutAllTask.java index f9d49f6..1834f60 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCachePutAllTask.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCachePutAllTask.java @@ -26,6 +26,7 @@ import org.apache.ignite.lang.*; import org.apache.ignite.resources.*; import org.jetbrains.annotations.*; +import javax.cache.*; import java.util.*; /** @@ -110,7 +111,7 @@ class GridCachePutAllTask extends ComputeTaskAdapter<Collection<Integer>, Void> break; } - catch (IgniteException e) { + catch (CacheException e) { if (i < RETRIES - 1) log.info("Put error, will retry: " + e); else @@ -138,7 +139,7 @@ class GridCachePutAllTask extends ComputeTaskAdapter<Collection<Integer>, Void> break; } - catch (IgniteException e) { + catch (CacheException e) { if (i < RETRIES - 1) log.info("Put error, will retry: " + e); else