You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2021/11/24 00:51:21 UTC

[geode] 01/01: GEODE-9850: tombstone might not create yet caused getOldestTombstoneTime() return 0

This is an automated email from the ASF dual-hosted git repository.

zhouxj pushed a commit to branch feature/GEODE-9850
in repository https://gitbox.apache.org/repos/asf/geode.git

commit b59b3d13f8beb28b24ba95706d915b31689ce11a
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Tue Nov 23 16:48:38 2021 -0800

    GEODE-9850: tombstone might not create yet caused getOldestTombstoneTime() return 0
---
 .../org/apache/geode/internal/cache/versions/TombstoneDUnitTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/versions/TombstoneDUnitTest.java b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/versions/TombstoneDUnitTest.java
index a576706..bdf4d9d 100644
--- a/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/versions/TombstoneDUnitTest.java
+++ b/geode-core/src/distributedTest/java/org/apache/geode/internal/cache/versions/TombstoneDUnitTest.java
@@ -241,10 +241,10 @@ public class TombstoneDUnitTest implements Serializable {
       // Send tombstone gc message to vm1.
       for (int i = 0; i < count; i++) {
         region.destroy("K" + i);
-        assertThat(
+        await().untilAsserted(() -> assertThat(
             tombstoneSweeper.getOldestTombstoneTime()
                 + TombstoneService.REPLICATE_TOMBSTONE_TIMEOUT_DEFAULT - System.currentTimeMillis())
-                    .isGreaterThan(0);
+                    .isGreaterThan(0));
         performGC(1);
       }