You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/03/25 15:31:23 UTC
[ignite] 03/03: IGNITE-11030 Test for for change "Fix Pages List to
preserve partition ID consistency."
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch ignite-2.7.5
in repository https://gitbox.apache.org/repos/asf/ignite.git
commit 70db06e1b4bb052f24306956a00159b7ce5f67b6
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Fri Feb 1 18:19:13 2019 +0300
IGNITE-11030 Test for for change "Fix Pages List to preserve partition ID consistency."
(cherry picked from commit a486278646cfb40f1b5a37da00c0282dad4872ba)
---
.../cache/persistence/db/IgniteTcBotInitNewPageTest.java | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteTcBotInitNewPageTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteTcBotInitNewPageTest.java
index 8ef517c..3bd9cb4 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteTcBotInitNewPageTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgniteTcBotInitNewPageTest.java
@@ -40,12 +40,20 @@ public class IgniteTcBotInitNewPageTest extends GridCommonAbstractTest {
/** Cache name. */
public static final String CACHE = "cache";
+ /** {@inheritDoc} */
+ @Override protected void beforeTest() throws Exception {
+ super.beforeTest();
+
+ cleanPersistenceDir();
+ }
+
/** */
- @Test
public void testInitNewPagePageIdConsistency() throws Exception {
- IgniteEx ex = startGrid(0);
+ IgniteEx ignite = startGrid(0);
+
+ ignite.cluster().active(true);
- IgniteCache<Object, Object> cache = ex.cache(CACHE);
+ IgniteCache<Object, Object> cache = ignite.cache(CACHE);
for (int i = 0; i < 1_000_000; i++)
cache.put(i, i);