Custom Replication Event handler works Inconsistently
AEM version: 6.5.14 with Java 11
Following is my custom replication event handler class
(service = EventHandler.class, configurationPolicy = ConfigurationPolicy.REQUIRE,
immediate = true, property = {
Constants.SERVICE_DESCRIPTION + "=replication description",
EventConstants.EVENT_TOPIC + "=" + ReplicationAction.EVENT_TOPIC})
public class ReplicationHandler implements EventHandler {
some logs...
extract ReplicationAction object from event.
adding the action as a job to a particular Topic using JobManager.
}
When replication events triggers, some logs are printed and some code is executed. The problem that I'm facing is that this works inconsistently.
Sometimes the code doesn't execute and the logs are also not printed.
The resources are replicated with no errors.
Has anyone faced this kind of issue before?

