[
https://issues.apache.org/jira/browse/GEODE-2820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056257#comment-16056257
]
ASF GitHub Bot commented on GEODE-2820:
---------------------------------------
Github user jhuynh1 commented on a diff in the pull request:
https://github.com/apache/geode/pull/588#discussion_r123060011
--- Diff:
geode-core/src/test/java/org/apache/geode/cache/query/dunit/QueryIndexUsingXMLDUnitTest.java
---
@@ -510,6 +512,16 @@ public void
testCreateAsyncIndexWhileDoingGIIAndCompareQueryResults() throws Exc
vm1.invoke(prIndexCreationCheck(PERSISTENT_REG_NAME, "secIndex", 50));
vm1.invoke(indexCreationCheck(REP_REG_NAME, "secIndex"));
+ vm1.invoke(() -> Awaitility.await().atMost(60,
TimeUnit.SECONDS).until(() -> {
+ boolean regionSizeCheck = getCache().getRegion(NAME).size() == 500
+ && getCache().getRegion(REP_REG_NAME).size() == 500
--- End diff --
Shouldn't this clause check the index size and not the region size? I
would think the timing issue was because the indexes were async. Because of
the async, the indexes may not have processes all of the updates prior to
validating the contents of the index...
> QueryIndexUsingXMLDUnitTest.testCreateAsyncIndexWhileDoingGIIAndCompareQueryResults
> is disabled
> -----------------------------------------------------------------------------------------------
>
> Key: GEODE-2820
> URL: https://issues.apache.org/jira/browse/GEODE-2820
> Project: Geode
> Issue Type: Test
> Components: querying, tests
> Reporter: Kirk Lund
> Labels: CI
>
> The test has an @Ignore annotation with value of "TODO: test is disabled
> because of #52167"
> This test should be fixed and reenabled.
> The original bug described this test as flaky and provided this old stack
> trace:
> {noformat}
> dunit.RMIException: While invoking
> com.gemstone.gemfire.cache.query.dunit.QueryIndexUsingXMLDUnitTest$11.run in
> VM 1 running on Host ent.gemstone.com with 4 VMs
> at dunit.VM.invoke(VM.java:357)
> at dunit.VM.invoke(VM.java:301)
> at dunit.VM.invoke(VM.java:255)
> at
> com.gemstone.gemfire.cache.query.dunit.QueryIndexUsingXMLDUnitTest.testCreateAsyncIndexWhileDoingGIIAndCompareQueryResults(QueryIndexUsingXMLDUnitTest.java:617)
> Caused by:
> junit.framework.AssertionFailedError: FAILED:SelectResults size is different
> in both the cases. Size1=490 Size2 = 489; failed query=Select * from
> /Portfolios where ID > 10
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)