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/30 19:06:52 UTC
[geode] branch feature/GEODE-3919 updated (b9edaa0 -> 8b472a3)
This is an automated email from the ASF dual-hosted git repository.
boglesby pushed a change to branch feature/GEODE-3919
in repository https://gitbox.apache.org/repos/asf/geode.git.
discard b9edaa0 GEODE-3919: Changed test to wait for the appropriate queue size since conflation is async
new 8b472a3 GEODE-3919: Changed test to wait for the appropriate queue size since conflation is async
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (b9edaa0)
\
N -- N -- N refs/heads/feature/GEODE-3919 (8b472a3)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/test/java/org/apache/geode/internal/cache/wan/WANTestBase.java | 1 -
1 file changed, 1 deletion(-)
--
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].
[geode] 01/01: GEODE-3919: Changed test to wait for the appropriate
queue size since conflation is async
Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
boglesby pushed a commit to branch feature/GEODE-3919
in repository https://gitbox.apache.org/repos/asf/geode.git
commit 8b472a38d76b75e85900fbbdc8e1359c85f79bad
Author: Barry Oglesby <bo...@pivotal.io>
AuthorDate: Mon Oct 30 12:00:14 2017 -0700
GEODE-3919: Changed test to wait for the appropriate queue size since conflation is async
---
.../java/org/apache/geode/internal/cache/wan/WANTestBase.java | 8 +-------
.../internal/cache/wan/parallel/ParallelWANStatsDUnitTest.java | 4 ++--
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/WANTestBase.java b/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/WANTestBase.java
index 0b06a60..f3d0358 100644
--- a/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/WANTestBase.java
+++ b/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/WANTestBase.java
@@ -2547,13 +2547,7 @@ public class WANTestBase extends JUnit4DistributedTestCase {
}
public static void testQueueSize(String senderId, int numQueueEntries) {
- GatewaySender sender = null;
- for (GatewaySender s : cache.getGatewaySenders()) {
- if (s.getId().equals(senderId)) {
- sender = s;
- break;
- }
- }
+ GatewaySender sender = cache.getGatewaySender(senderId);
if (sender.isParallel()) {
int totalSize = 0;
Set<RegionQueue> queues = ((AbstractGatewaySender) sender).getQueues();
diff --git a/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/parallel/ParallelWANStatsDUnitTest.java b/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/parallel/ParallelWANStatsDUnitTest.java
index 2a90308..e2df453 100644
--- a/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/parallel/ParallelWANStatsDUnitTest.java
+++ b/geode-wan/src/test/java/org/apache/geode/internal/cache/wan/parallel/ParallelWANStatsDUnitTest.java
@@ -505,8 +505,8 @@ public class ParallelWANStatsDUnitTest extends WANTestBase {
int numIterations = 100;
vm1.invoke(() -> putSameEntry(regionName, numIterations));
- // Verify queue size (no need to wait)
- vm1.invoke(() -> testQueueSize(senderId, 2));
+ // Wait for appropriate queue size
+ vm1.invoke(() -> checkQueueSize(senderId, 2));
// Verify the conflation indexes size stat
verifyConflationIndexesSize(senderId, 1, vm1);
--
To stop receiving notification emails like this one, please contact
"commits@geode.apache.org" <co...@geode.apache.org>.