Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Space Filters and Replication

Hello Everyone, I am trying to determine if a replication in a sync cluster will cause a space filter to be executed. In other words if I write an entry to a cluster, with 2 members, will the space filter be executed twice. Once on the initial write, and a second time during the replication?

If so, is there a way to stop this behavior or at least determine that a write is the result of a replication?

Thanks, Charlie

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=1955]{quote}

asked 2008-03-14 22:39:42 -0500

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Charlie,
- The space filter will be executed if the filter is active for a backup space. You can disable the filter for a space running in backup mode. See the <active-when-backup> filter declaration property: http://www.gigaspaces.com/wiki/display/GS6/SpaceFilter-SpaceSchema-6.0
- If both replicated spaces are active (no backup) the space filter event will be called at both spaces.
- Update filter operations are not called on the replica. This is a known issue for some time. Will be fixed in future versions.
- The space filter context is null for a filter called as a result of a replication event. You can use this as indication to know if this is originated by a client call or replication event. Just make sure your space is secured and you pass the security context credentials for the space proxy via IJSpace setSecurityContext().
- Another way to identify if the operation is a result of a client call or replication event is to use replication filter. I think this is too much overhead to identify event originator. See: http://www.gigaspaces.com/wiki/display/GS6/ReplicationFilters-6.0

Shay

answered 2008-03-15 13:33:45 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-03-14 22:39:42 -0500

Seen: 463 times

Last updated: Mar 15 '08