ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkuliche...@apache.org
Subject [15/18] incubator-ignite git commit: Fixed metrics test for tx. Added latency.
Date Fri, 06 Mar 2015 18:38:20 GMT
Fixed metrics test for tx. Added latency.


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

Branch: refs/heads/ignite-141
Commit: ccd956e11c6014d3bd2a4ebdb12384890a945c30
Parents: c5687d9
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Fri Mar 6 16:04:19 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Fri Mar 6 16:04:19 2015 +0300

----------------------------------------------------------------------
 .../cache/GridCacheTransactionalAbstractMetricsSelfTest.java  | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ccd956e1/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheTransactionalAbstractMetricsSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheTransactionalAbstractMetricsSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheTransactionalAbstractMetricsSelfTest.java
index 11fbbd0..a2ae57e 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheTransactionalAbstractMetricsSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheTransactionalAbstractMetricsSelfTest.java
@@ -19,6 +19,7 @@ package org.apache.ignite.internal.processors.cache;
 
 import org.apache.ignite.*;
 import org.apache.ignite.cache.*;
+import org.apache.ignite.internal.util.typedef.internal.*;
 import org.apache.ignite.transactions.*;
 
 import static org.apache.ignite.transactions.TransactionConcurrency.*;
@@ -216,6 +217,9 @@ public abstract class GridCacheTransactionalAbstractMetricsSelfTest extends
Grid
                 for (int j = 0; j < keyCount(); j++)
                     cache.put(j, j);
 
+            // Waiting 30 ms for metrics. U.currentTimeMillis() method has 10 ms discretization.
+            U.sleep(30);
+
             tx.commit();
         }
 
@@ -258,6 +262,9 @@ public abstract class GridCacheTransactionalAbstractMetricsSelfTest extends
Grid
                 for (int j = 0; j < keyCount(); j++)
                     cache.put(j, j);
 
+            // Waiting 30 ms for metrics. U.currentTimeMillis() method has 10 ms discretization.
+            U.sleep(30);
+
             tx.rollback();
         }
 


Mime
View raw message