You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by bo...@apache.org on 2017/10/20 01:01:51 UTC
[geode] branch develop updated: GEODE-3810: Incremented test
timestamp by 1 in case it is the same as the previous event
This is an automated email from the ASF dual-hosted git repository.
boglesby pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 2cb5fed GEODE-3810: Incremented test timestamp by 1 in case it is the same as the previous event
2cb5fed is described below
commit 2cb5fed2d677b8ecc9b2e2615ba533d08f803b60
Author: Barry Oglesby <bo...@users.noreply.github.com>
AuthorDate: Thu Oct 19 18:01:48 2017 -0700
GEODE-3810: Incremented test timestamp by 1 in case it is the same as the previous event
---
.../internal/cache/UpdateVersionDUnitTest.java | 24 ++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/geode-wan/src/test/java/org/apache/geode/internal/cache/UpdateVersionDUnitTest.java b/geode-wan/src/test/java/org/apache/geode/internal/cache/UpdateVersionDUnitTest.java
index 60fda06..8bd445c 100644
--- a/geode-wan/src/test/java/org/apache/geode/internal/cache/UpdateVersionDUnitTest.java
+++ b/geode-wan/src/test/java/org/apache/geode/internal/cache/UpdateVersionDUnitTest.java
@@ -135,7 +135,11 @@ public class UpdateVersionDUnitTest extends JUnit4DistributedTestCase {
int entryVersion = stamp.getEntryVersion() - 1;
int dsid = stamp.getDistributedSystemId();
- long time = System.currentTimeMillis();
+
+ // Increment the time by 1 in case the time is the same as the previous event.
+ // The entry's version timestamp can be incremented by 1 in certain circumstances.
+ // See AbstractRegionEntry.generateVersionTag.
+ long time = System.currentTimeMillis() + 1;
versionTag.setEntryVersion(entryVersion);
versionTag.setDistributedSystemId(dsid);
@@ -266,7 +270,11 @@ public class UpdateVersionDUnitTest extends JUnit4DistributedTestCase {
int entryVersion = stamp.getEntryVersion() - 1;
int dsid = stamp.getDistributedSystemId();
- long time = System.currentTimeMillis();
+
+ // Increment the time by 1 in case the time is the same as the previous event.
+ // The entry's version timestamp can be incremented by 1 in certain circumstances.
+ // See AbstractRegionEntry.generateVersionTag.
+ long time = System.currentTimeMillis() + 1;
versionTag.setEntryVersion(entryVersion);
versionTag.setDistributedSystemId(dsid);
@@ -386,7 +394,11 @@ public class UpdateVersionDUnitTest extends JUnit4DistributedTestCase {
int entryVersion = stamp.getEntryVersion() - 1;
int dsid = stamp.getDistributedSystemId();
- long time = System.currentTimeMillis();
+
+ // Increment the time by 1 in case the time is the same as the previous event.
+ // The entry's version timestamp can be incremented by 1 in certain circumstances.
+ // See AbstractRegionEntry.generateVersionTag.
+ long time = System.currentTimeMillis() + 1;
versionTag.setEntryVersion(entryVersion);
versionTag.setDistributedSystemId(dsid);
@@ -519,7 +531,11 @@ public class UpdateVersionDUnitTest extends JUnit4DistributedTestCase {
int entryVersion = stamp.getEntryVersion() - 1;
int dsid = stamp.getDistributedSystemId();
- long time = System.currentTimeMillis();
+
+ // Increment the time by 1 in case the time is the same as the previous event.
+ // The entry's version timestamp can be incremented by 1 in certain circumstances.
+ // See AbstractRegionEntry.generateVersionTag.
+ long time = System.currentTimeMillis() + 1;
versionTag.setEntryVersion(entryVersion);
versionTag.setDistributedSystemId(dsid);
--
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].