[ https://issues.apache.org/jira/browse/GEODE-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001182#comment-16001182 ]
ASF GitHub Bot commented on GEODE-2881: --------------------------------------- GitHub user nabarunnag opened a pull request: https://github.com/apache/geode/pull/498 GEODE-2881: Wait for waitForFlushBeforeExecuteTextSearch to complete * Test now waits for waitForFlushBeforeExecuteTextSearch initiated by the test hook. * The test hook gets called when GII is requested. * This task may hit CacheClosedException if the test get completed before the flush operations of GII Potential Reviewers @upthewaterspout @jhuynh1 @gesterzhou @ladyVader You can merge this pull request into a Git repository by running: $ git pull https://github.com/nabarunnag/incubator-geode feature/GEODE-2881 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/geode/pull/498.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #498 ---- commit 2e7c610adefe01f81c98acf3294aacede18a5c91 Author: nabarun <n...@pivotal.io> Date: 2017-05-06T00:13:20Z GEODE-2881: Wait for waitForFlushBeforeExecuteTextSearch to complete * Test now waits for waitForFlushBeforeExecuteTextSearch initiated by the test hook. * The test hook gets called when GII is requested. * This task may hit CacheClosedException if the test get completed before the flush operations of GII ---- > waitForFlushBeforeExecuteTextSearch instance hits cache closed exception > because test is completed > -------------------------------------------------------------------------------------------------- > > Key: GEODE-2881 > URL: https://issues.apache.org/jira/browse/GEODE-2881 > Project: Geode > Issue Type: Bug > Components: lucene > Reporter: nabarun > Assignee: nabarun > > Issue: > The returnCorrectResultsWhenIndexUpdateHappensIntheMiddleofGII tests creates > a test hook which calls waitForFlushBeforeExecuteTextSearch when GII is > requested and also the test calls waitForFlushBeforeExecuteTextSearch before > executing a Lucene Query. > Both calls occur in different threads and if the wait for flush called by the > test hook is still executing while the test is completed, the caches are shut > down and it gets a CacheClosedException > Solution: > Make sure the test hook's wait for flush is completed before the test is > terminated / before executing a query -- This message was sent by Atlassian JIRA (v6.3.15#6346)