[ https://issues.apache.org/jira/browse/GEODE-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15969633#comment-15969633 ]
ASF subversion and git services commented on GEODE-2787: -------------------------------------------------------- Commit 7e607de71163200ce3741664dd64d32f692acc4f in geode's branch refs/heads/develop from zhouxh [ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=7e607de ] GEODE-2787: When distribution happened, it calls startOperation() to increase a count, then call an endOperation() to decrease the count. state flush will wait for this count to become 0. But notifyGateway() is called after distribute(). So there's race that stateflush finished but notifyGateway has not done yet. The fix is to move the endOperation() after callbacks. > state flush did not wait for notifyGateway > ------------------------------------------ > > Key: GEODE-2787 > URL: https://issues.apache.org/jira/browse/GEODE-2787 > Project: Geode > Issue Type: Bug > Reporter: xiaojian zhou > Assignee: xiaojian zhou > Labels: lucene > > When distribution happened, it calls startOperation() to increase a count, > then call an endOperation() to decrease the count. > state flush will wait for this count to become 0. > But notifyGateway() is called after distribute(). So there's race that > stateflush finished but notifyGateway has not done yet. > The fix is to move the endOperation() after callbacks. -- This message was sent by Atlassian JIRA (v6.3.15#6346)