[ https://issues.apache.org/jira/browse/GEODE-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852835#comment-15852835 ]
ASF GitHub Bot commented on GEODE-1887: --------------------------------------- GitHub user davinash opened a pull request: https://github.com/apache/geode/pull/390 [GEODE-1887] #comment Fix Issue Client PROXY region should delegate all operations to server Issue : Client PROXY region should delegate all operations to server If client and data policy is empty then size API goes through ServerRegionProxy Wrote a test for Replicated and PR to verify size and isEmpty You can merge this pull request into a Git repository by running: $ git pull https://github.com/davinash/geode feature/GEODE-1887 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/geode/pull/390.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 #390 ---- commit 0ecfb99979bdaa1fab7784e72418e1c6737f8225 Author: adongre <adon...@apache.org> Date: 2017-02-04T16:04:37Z GEODE-1887: Now Size api goes through ServerProxy when cache is of type client and DataPolicy is Empty. Added a test for both PR and Replicated regions. ---- > Client PROXY region should delegate all operations to server > ------------------------------------------------------------ > > Key: GEODE-1887 > URL: https://issues.apache.org/jira/browse/GEODE-1887 > Project: Geode > Issue Type: Bug > Components: regions > Reporter: Swapnil Bawaskar > Assignee: Avinash Dongre > > Currently a ClientRegionShortcut.PROXY region sends operations like put() and > get() over to the server, but for operations like size() and isEmpty() it > just consults the local state on the client and returns 0 and true > respectively, even though there may be data in the servers for that region. > A PROXY region should not attempt to consult its local state for any > operation. -- This message was sent by Atlassian JIRA (v6.3.15#6346)