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

nnag 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 0e36a99  GEODE-4745: Stat check asserts modified
0e36a99 is described below

commit 0e36a99205bee12e29a99e9e82e59e889161a0be
Author: nabarun <[email protected]>
AuthorDate: Mon Feb 26 09:15:34 2018 -0800

    GEODE-4745: Stat check asserts modified
    
        * The assert check for the lucene commit checks have been modified to 
address the fact that it is not deterministic
        * The reindex thread may be faster than the puts being done by the test 
hence the number of commits may different depending on whether the puts were 
faster or the reindexing thread.
---
 .../geode/cache/lucene/LuceneIndexMaintenanceIntegrationTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/LuceneIndexMaintenanceIntegrationTest.java
 
b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/LuceneIndexMaintenanceIntegrationTest.java
index a318ca9..bb7f307 100644
--- 
a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/LuceneIndexMaintenanceIntegrationTest.java
+++ 
b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/LuceneIndexMaintenanceIntegrationTest.java
@@ -274,7 +274,7 @@ public class LuceneIndexMaintenanceIntegrationTest extends 
LuceneIntegrationTest
     LuceneTestUtilities.resumeSender(cache);
     assertTrue(luceneService.waitUntilFlushed(INDEX_NAME, REGION_NAME, 
WAIT_FOR_FLUSH_TIME,
         TimeUnit.MILLISECONDS));
-    assertEquals(8, index.getIndexStats().getCommits());
+    assertEquals(true, 8 >= index.getIndexStats().getCommits());
   }
 
   @Test

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to