ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [20/50] incubator-ignite git commit: # ignite-sprint-4 more info in test
Date Wed, 29 Apr 2015 15:17:54 GMT
# ignite-sprint-4 more info 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/a7599bf0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a7599bf0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a7599bf0

Branch: refs/heads/ignite-728
Commit: a7599bf0380386c84ef96150987bdf1d861f6455
Parents: 7d9df3d
Author: sboikov <sboikov@gridgain.com>
Authored: Wed Apr 29 09:36:19 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Wed Apr 29 09:36:19 2015 +0300

----------------------------------------------------------------------
 .../cache/distributed/GridCacheLockAbstractTest.java          | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a7599bf0/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheLockAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheLockAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheLockAbstractTest.java
index 72a64a1..ab0f7d0 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheLockAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheLockAbstractTest.java
@@ -19,6 +19,7 @@ package org.apache.ignite.internal.processors.cache.distributed;
 
 import org.apache.ignite.*;
 import org.apache.ignite.cache.*;
+import org.apache.ignite.cache.affinity.*;
 import org.apache.ignite.configuration.*;
 import org.apache.ignite.internal.*;
 import org.apache.ignite.spi.discovery.tcp.*;
@@ -502,8 +503,12 @@ public abstract class GridCacheLockAbstractTest extends GridCommonAbstractTest
{
     public void testLockReentrancy() throws Throwable {
         fail("https://issues.apache.org/jira/browse/IGNITE-835");
 
+        Affinity<Integer> aff = ignite1.affinity(null);
+
         for (int i = 10; i < 100; i++) {
-            log.info("Key: " + i);
+            log.info("Test lock [key=" + i +
+                ", primary=" + aff.isPrimary(ignite1.cluster().localNode(), i) +
+                ", backup=" + aff.isBackup(ignite1.cluster().localNode(), i) + ']');
 
             final int i0 = i;
 


Mime
View raw message