ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject ignite git commit: IGNITE-10123 Disable events in IgniteLogicalRecoveryTest - Fixes #5237.
Date Fri, 02 Nov 2018 11:53:01 GMT
Repository: ignite
Updated Branches:
  refs/heads/master bbcf5b400 -> 8a48c5cb2


IGNITE-10123 Disable events in IgniteLogicalRecoveryTest - Fixes #5237.

Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>


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

Branch: refs/heads/master
Commit: 8a48c5cb2f6f1b6c2e1ab4d33e85059504888b79
Parents: bbcf5b4
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Fri Nov 2 14:52:31 2018 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Fri Nov 2 14:52:31 2018 +0300

----------------------------------------------------------------------
 .../persistence/db/IgniteLogicalRecoveryTest.java    | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8a48c5cb/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteLogicalRecoveryTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteLogicalRecoveryTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteLogicalRecoveryTest.java
index 584196f..425f9b9 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteLogicalRecoveryTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteLogicalRecoveryTest.java
@@ -61,6 +61,9 @@ import org.junit.Assert;
  * A set of tests that check correctness of logical recovery performed during node start.
  */
 public class IgniteLogicalRecoveryTest extends GridCommonAbstractTest {
+    /** */
+    private static final int[] EVTS_DISABLED = {};
+
     /** Shared group name. */
     private static final String SHARED_GROUP_NAME = "group";
 
@@ -73,9 +76,12 @@ public class IgniteLogicalRecoveryTest extends GridCommonAbstractTest {
     /** Io factory. */
     private FileIOFactory ioFactory;
 
+    /** {@inheritDoc} */
     @Override protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws
Exception {
         IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
 
+        cfg.setIncludeEventTypes(EVTS_DISABLED);
+
         cfg.setConsistentId(igniteInstanceName);
 
         cfg.setCacheConfiguration(
@@ -381,7 +387,7 @@ public class IgniteLogicalRecoveryTest extends GridCommonAbstractTest
{
     /**
      *
      */
-    private class AggregateCacheLoader {
+    private static class AggregateCacheLoader {
         /** Ignite. */
         IgniteEx ignite;
 
@@ -432,7 +438,7 @@ public class IgniteLogicalRecoveryTest extends GridCommonAbstractTest
{
         /**
          * @param ignite Ignite.
          */
-        public void consistencyCheck(IgniteEx ignite) throws IgniteCheckedException {
+        public void consistencyCheck(IgniteEx ignite) {
             if (cacheLoaders != null)
                 for (CacheLoader cacheLoader : cacheLoaders.keySet())
                     cacheLoader.consistencyCheck(ignite);
@@ -567,9 +573,12 @@ public class IgniteLogicalRecoveryTest extends GridCommonAbstractTest
{
             return "null";
 
         StringBuilder sb = new StringBuilder();
+
         sb.append('[');
+
         for (int i = 0; i < Math.min(arr.length, 10); i++)
-            sb.append(i + ",");
+            sb.append(i).append(",");
+
         sb.append(']');
 
         return sb.toString();


Mime
View raw message