You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dm...@apache.org on 2015/11/20 11:36:01 UTC
ignite git commit: IGNITE-801: additional fixes
Repository: ignite
Updated Branches:
refs/heads/ignite-801 04d2c912e -> 130163dc6
IGNITE-801: additional fixes
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/130163dc
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/130163dc
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/130163dc
Branch: refs/heads/ignite-801
Commit: 130163dc660c67e43c78966d876c47986ef217d3
Parents: 04d2c91
Author: Denis Magda <dm...@gridgain.com>
Authored: Fri Nov 20 13:35:49 2015 +0300
Committer: Denis Magda <dm...@gridgain.com>
Committed: Fri Nov 20 13:35:49 2015 +0300
----------------------------------------------------------------------
.../apache/ignite/internal/processors/cache/GridCacheUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/130163dc/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
index 5c4e564..89779d6 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
@@ -1792,13 +1792,13 @@ public class GridCacheUtils {
throw e;
}
catch (TransactionRollbackException e) {
- if (i == GridCacheAdapter.MAX_RETRIES)
+ if (i + 1 == GridCacheAdapter.MAX_RETRIES)
throw e;
U.sleep(1);
}
catch (IgniteCheckedException e) {
- if (i == GridCacheAdapter.MAX_RETRIES)
+ if (i + 1 == GridCacheAdapter.MAX_RETRIES)
throw e;
if (X.hasCause(e, ClusterTopologyCheckedException.class)) {