Repository: incubator-geode
Updated Branches:
  refs/heads/develop 9f0919f09 -> 2993e6d6f


GEODE-1821: Adjust timing to wait for async thread

This closes #279


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/2993e6d6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/2993e6d6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/2993e6d6

Branch: refs/heads/develop
Commit: 2993e6d6fac49b5601fde5d740b0ff81712f8977
Parents: 9f0919f
Author: Ken Howe <[email protected]>
Authored: Wed Nov 2 11:14:13 2016 -0700
Committer: Darrel Schneider <[email protected]>
Committed: Fri Nov 4 13:51:20 2016 -0700

----------------------------------------------------------------------
 .../PersistentColocatedPartitionedRegionDUnitTest.java      | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/2993e6d6/geode-core/src/test/java/org/apache/geode/internal/cache/partitioned/PersistentColocatedPartitionedRegionDUnitTest.java
----------------------------------------------------------------------
diff --git 
a/geode-core/src/test/java/org/apache/geode/internal/cache/partitioned/PersistentColocatedPartitionedRegionDUnitTest.java
 
b/geode-core/src/test/java/org/apache/geode/internal/cache/partitioned/PersistentColocatedPartitionedRegionDUnitTest.java
index 3f2ab70..a044a61 100644
--- 
a/geode-core/src/test/java/org/apache/geode/internal/cache/partitioned/PersistentColocatedPartitionedRegionDUnitTest.java
+++ 
b/geode-core/src/test/java/org/apache/geode/internal/cache/partitioned/PersistentColocatedPartitionedRegionDUnitTest.java
@@ -93,7 +93,7 @@ public class PersistentColocatedPartitionedRegionDUnitTest
   private static final String PATTERN_FOR_MISSING_CHILD_LOG =
       "(?s)Persistent data recovery for region .*is prevented by offline 
colocated region.*";
   private static final int NUM_BUCKETS = 15;
-  private static final int MAX_WAIT = 30 * 1000;
+  private static final int MAX_WAIT = 60 * 1000;
   private static final int DEFAULT_NUM_EXPECTED_LOG_MESSAGES = 1;
   private static int numExpectedLogMessages = 
DEFAULT_NUM_EXPECTED_LOG_MESSAGES;
   private static int numChildPRs = 1;
@@ -1188,6 +1188,13 @@ public class 
PersistentColocatedPartitionedRegionDUnitTest
     CHILD_REGION_RESTART_ORDER.add(new Object[] {"Gen2_C2_2", "Gen1_C2", 0});
   }
 
+  /**
+   * This thread starts up multiple colocated child regions in the sequence 
defined by
+   * {@link #CHILD_REGION_RESTART_ORDER}. The complete startup sequence, which 
includes timed
+   * periods waiting for log messages, takes at least 28 secs. Tests waiting 
for this
+   * {@link SerializableCallable} to complete must have sufficient overhead in 
the wait for runtime
+   * variations that exceed the minimum time to complete.
+   */
   private SerializableCallable createPRsSequencedColocationTreeCreationThread =
       new SerializableCallable("createPRsSequencedColocationTreeCreation") {
         Appender mockAppender;

Reply via email to