I have one doubt that the replication listner will be called before the node reaches to replication queue or before that ?
or replication queue listens to replication queue itself?
Solved! Go to Solution.
Views
Replies
Total Likes
EventHandler
objects are registered with the Framework service registry and are notified with an Event
object when an event is sent or posted.
EventHandler
objects can inspect the received Event
object to determine its topic and properties.
So it hard to tell, if replication was triggered before/after the replication queue is created.
You can enable debug logs to track/check the replication queue vs your event handler
EventHandler
objects are registered with the Framework service registry and are notified with an Event
object when an event is sent or posted.
EventHandler
objects can inspect the received Event
object to determine its topic and properties.
So it hard to tell, if replication was triggered before/after the replication queue is created.
You can enable debug logs to track/check the replication queue vs your event handler
@Mohit1 Apache JackRabbit OAK implements asynchronous observation.
What that means is that the Event listener will see events after they occur and the transaction is committed.
In case of replication, this transaction is the replication event and in my opinion the transaction scope involves adding the item to the distribution queue.
You can check submit this as a question to the JackRabbit OAK or try other channels mentioned below to get an official answer.
https://jackrabbit.apache.org/oak/docs/participating.html
@Mohit1 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies