You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/24 20:45:05 UTC

[jira] [Commented] (GEODE-156) unit tests that call pauseIfNecessary will intermittently fail

    [ https://issues.apache.org/jira/browse/GEODE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14640904#comment-14640904 ] 

ASF subversion and git services commented on GEODE-156:
-------------------------------------------------------

Commit cd232e1a12103466dd578d2d7442fed6eed70a13 in incubator-geode's branch refs/heads/feature/GEODE-156 from [~dschneider]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=cd232e1 ]

GEODE-156: fix unit tests that call pauseIfNecessary

all calls to pauseIfNecessary have been changed to flushIfNecessary.
The new flushIfNecessary method uses StateFlushOperation.


> unit tests that call pauseIfNecessary will intermittently fail
> --------------------------------------------------------------
>
>                 Key: GEODE-156
>                 URL: https://issues.apache.org/jira/browse/GEODE-156
>             Project: Geode
>          Issue Type: Bug
>            Reporter: Darrel Schneider
>            Assignee: Darrel Schneider
>            Priority: Minor
>
> Many of the unit tests in MultiVMRegionTestCase call pauseIfNecessary.
> They do this to allow previous operations done on a no-ack region to complete.
> But since the pause is simply a sleep it is possible for these tests to not sleep long enough and still fail.
> They may also sleep longer than is needed.
> We have a StateFlushOperation that can be used by the sender to wait until all the no-ack ops it did on a particular region have completed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)