Hi all,
we are writing an Plugin that attempts to intercept every write to a Lucene index and retreive http-Headers in there and perform some operations then ...
We therefore implemented an ActionPlugin and registered our ActionFilter in which we see most of the actions: we see IndexWrite, IndexCreate, IndexClose, Bulk - Acionts and much more
The only situation we currently encountered, when we do not see the acion, is if a replica shard on a non-master node is written. It seems, that this operation first goes to the translog and from there later to the index. But neither of the both actions is seen in our filter.
We debuged a bit, and found, that an AsynchronousAction is created and run, and that this holds a task that contains our http - headers. But we do not know, how we could intercept this.
Can somebody help and give us some pointer? Is there another plugin that would have to be implemented or another method that would have to be overwritten ?
Thanks!
Martin Huber