[
https://issues.apache.org/jira/browse/GEODE-10077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17519101#comment-17519101
]
ASF subversion and git services commented on GEODE-10077:
---------------------------------------------------------
Commit 3889df2803c7d7313a6040229e2de401a890f8e4 in geode's branch
refs/heads/develop from Alberto Gomez
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=3889df2803 ]
GEODE-10077: Avoid callbacks in wan-copy region (#7391)
The wan-copy region command does not always prevent
that callbacks are executed at the remote site for
the entries copied.
The value set by the wan-copy region command for
generateCallbacks to false in the events sent via
the gateway sender was not being propagated by the server
that received the events in the remote site (via the gateway
receiver) when proxying the put by means of a PutMessage or
UpdateMessage in order to send the event to the server with
the primary bucket or to replicate the put in case of more
than one replica in the region.
The flags in the PutMessage and UpdateMessage have been used
to propagate the value of generateCallbacks.
> wan-copy region command does not prevent callbacks to be executed on the
> remote site
> ------------------------------------------------------------------------------------
>
> Key: GEODE-10077
> URL: https://issues.apache.org/jira/browse/GEODE-10077
> Project: Geode
> Issue Type: Bug
> Components: gfsh, wan
> Reporter: Alberto Gomez
> Assignee: Alberto Gomez
> Priority: Major
> Labels: pull-request-available
>
> The wan-copy region command does not always prevent that callbacks are
> executed at the remote site for the entries copied.
> For example, if the remote site has more than one server and the gateway
> receiver that gets the entries copied does not host the primary bucket of the
> entry received, it will send the put operation to the server than hosts the
> primary bucket and on this server, callbacks will be executed, provoking, for
> example, that if a gateway sender is configured for the region, the event
> will be sent by that gateway sender in the remote site.
> Also, if the remote site has more than one server and the region has at least
> one replica (either because it is a replicated region or because it is a
> partitioned region with number of replicas greater than 1) then servers in
> the remote site that receive an UpdateMessage from the server that received
> the copied entry via the gateway receiver, would execute the callbacks,
> provoking, like in the above case that if a gateway sender is configured for
> the region, the event will be sent by that gateway sender in the remote site.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)