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 2016/05/25 17:05:12 UTC
[jira] [Commented] (GEODE-1425) PartitionRegionHelper local data
methods return a Region whose get(key, callbackArg) method does not
correctly handle the callback argument
[ https://issues.apache.org/jira/browse/GEODE-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300430#comment-15300430 ]
ASF subversion and git services commented on GEODE-1425:
--------------------------------------------------------
Commit cae8f7fecf893ea4a31f7b06c22130fb646407bb in incubator-geode's branch refs/heads/develop from [~dschneider]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=cae8f7f ]
GEODE-1425: fix callback arg parameter order
> PartitionRegionHelper local data methods return a Region whose get(key, callbackArg) method does not correctly handle the callback argument
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: GEODE-1425
> URL: https://issues.apache.org/jira/browse/GEODE-1425
> Project: Geode
> Issue Type: Bug
> Components: regions
> Reporter: Darrel Schneider
> Fix For: 1.0.0-incubating.M3
>
>
> PartitionRegionHelper has the methods: getLocalData and getLocalPrimaryData.
> They both return an instance of Region.
> The get(key, callbackArg) does not do the following with the callbackArg:
> 1. It does not check if the callbackArg is an instanceof PartitionResolver. So you can not use the callbackArg in this case to specify the resolver. Instead use the resolver region attribute or the key.
> 2. The EntryOperation passed to the resolver getRoutingObject method will return the callbackArg from getNewValue and null from getCallbackArgument and false from isCallbackArgumentAvailable
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)