You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2019/04/25 13:12:00 UTC
[ignite] branch master updated: IGNITE-11775 Fixed flaky
IgnitePdsWithTtlTest
This is an automated email from the ASF dual-hosted git repository.
agura pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 3595151 IGNITE-11775 Fixed flaky IgnitePdsWithTtlTest
3595151 is described below
commit 3595151beaa2c6bffcc5a5a91e25a8a35504ad49
Author: Slava Koptilin <sl...@gmail.com>
AuthorDate: Thu Apr 25 16:05:22 2019 +0300
IGNITE-11775 Fixed flaky IgnitePdsWithTtlTest
Signed-off-by: Andrey Gura <ag...@apache.org>
---
.../processors/cache/persistence/db/IgnitePdsWithTtlTest.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgnitePdsWithTtlTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgnitePdsWithTtlTest.java
index fc4fa6d..afe2b34 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgnitePdsWithTtlTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/IgnitePdsWithTtlTest.java
@@ -25,6 +25,7 @@ import javax.cache.expiry.Duration;
import javax.cache.expiry.ExpiryPolicy;
import org.apache.ignite.IgniteCache;
import org.apache.ignite.IgniteCheckedException;
+import org.apache.ignite.IgniteSystemProperties;
import org.apache.ignite.cache.CachePeekMode;
import org.apache.ignite.cache.CacheRebalanceMode;
import org.apache.ignite.cache.CacheWriteSynchronizationMode;
@@ -46,6 +47,7 @@ import org.apache.ignite.internal.util.typedef.PA;
import org.apache.ignite.internal.util.typedef.internal.CU;
import org.apache.ignite.testframework.GridTestUtils;
import org.apache.ignite.testframework.MvccFeatureChecker;
+import org.apache.ignite.testframework.junits.WithSystemProperty;
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
import org.junit.Test;
@@ -54,6 +56,7 @@ import static org.apache.ignite.IgniteSystemProperties.IGNITE_BASELINE_AUTO_ADJU
/**
* Test TTL worker with persistence enabled
*/
+@WithSystemProperty(key = IgniteSystemProperties.IGNITE_UNWIND_THROTTLING_TIMEOUT, value = "5")
public class IgnitePdsWithTtlTest extends GridCommonAbstractTest {
/** */
public static final String CACHE_NAME = "expirableCache";
@@ -190,7 +193,7 @@ public class IgnitePdsWithTtlTest extends GridCommonAbstractTest {
fillCache(srv.cache(CACHE_NAME));
if (restartGrid) {
- srv.context().cache().context().database().wakeupForCheckpoint("test-checkpoint");
+ srv.context().cache().context().database().waitForCheckpoint("test-checkpoint");
stopGrid(0);
srv = startGrid(0);