I am using an embeded version of Hazelcast 5.2.1 and I noticed that EntryProcessor executes on all cluster members.
In my entry processor, I have a logic which fetch some data from database (based on the data definition in the distributed map) and send the result into a bus. The problem is that I receive twice the same notification since the both cluster members execute the task.
Why the entry proccessor executes on both cluster members?
Is there a way to force the execution to only the key owner or at least that the entry processor is executed only once?
My entry processor definition:
@Override
public EntryProcessor<String, String, String> getBackupProcessor() {
return new EntryProcessor<String, String, String>() {
private final String updatedValueFromPrimary = updatedValue;
@Override
public String process(Map.Entry<String, String> entry) {
entry.setValue(updatedValueFromPrimary);
return "ok";
}
};
}
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/b4df9ccc-4481-4e38-8325-5eb0d420f472n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/d6a63794-f52b-4835-855e-c8db8fbdcf7an%40googlegroups.com.