ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [18/28] ignite git commit: Fixed test output.
Date Wed, 16 Dec 2015 08:19:12 GMT
Fixed test output.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4b3fcfb6
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4b3fcfb6
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4b3fcfb6

Branch: refs/heads/ignite-843-rc2
Commit: 4b3fcfb62fbded61d854d5404bdaba0b7f2637a3
Parents: e2a0390
Author: Anton Vinogradov <av@apache.org>
Authored: Tue Dec 15 15:21:50 2015 +0300
Committer: Anton Vinogradov <av@apache.org>
Committed: Tue Dec 15 15:21:50 2015 +0300

----------------------------------------------------------------------
 .../rebalancing/GridCacheRebalancingSyncSelfTest.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4b3fcfb6/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
index 3b25bd7..09f9e58 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/rebalancing/GridCacheRebalancingSyncSelfTest.java
@@ -140,8 +140,9 @@ public class GridCacheRebalancingSyncSelfTest extends GridCommonAbstractTest
{
      */
     protected void generateData(Ignite ignite, String name, int from, int iter) {
         for (int i = from; i < from + TEST_SIZE; i++) {
-            if (i % (TEST_SIZE / 10) == 0)
-                log.info("Prepared " + i * 100 / (TEST_SIZE) + "% entries (" + TEST_SIZE
+ ").");
+            if ((i + 1) % (TEST_SIZE / 10) == 0)
+                log.info("Prepared " + (i + 1) * 100 / (TEST_SIZE) + "% entries. [count="
+ TEST_SIZE +
+                    ", iteration=" + iter + ", cache=" + name + "]");
 
             ignite.cache(name).put(i, i + name.hashCode() + iter);
         }
@@ -167,8 +168,9 @@ public class GridCacheRebalancingSyncSelfTest extends GridCommonAbstractTest
{
      */
     protected void checkData(Ignite ignite, String name, int from, int iter) {
         for (int i = from; i < from + TEST_SIZE; i++) {
-            if (i % (TEST_SIZE / 10) == 0)
-                log.info("<" + name + "> Checked " + i * 100 / (TEST_SIZE) + "% entries
(" + TEST_SIZE + ").");
+            if ((i + 1) % (TEST_SIZE / 10) == 0)
+                log.info("<" + name + "> Checked " + (i + 1) * 100 / (TEST_SIZE) +
"% entries. [count=" + TEST_SIZE +
+                    ", iteration=" + iter + ", cache=" + name + "]");
 
             assert ignite.cache(name).get(i) != null && ignite.cache(name).get(i).equals(i
+ name.hashCode() + iter) :
                 i + " value " + (i + name.hashCode() + iter) + " does not match (" + ignite.cache(name).get(i)
+ ")";


Mime
View raw message