]
Gustavo Fernandes updated ISPN-4708:
------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Make DirectoryImplementor#deleteFile apply changes asynchronously
-----------------------------------------------------------------
Key: ISPN-4708
URL:
https://issues.jboss.org/browse/ISPN-4708
Project: Infinispan
Issue Type: Enhancement
Components: Lucene Directory
Reporter: Sanne Grinovero
Assignee: Gustavo Fernandes
Fix For: 7.0.0.CR2
Looks like the {{deleteFile}} operation is the main responsible component for the latency
generated by writing to the Lucene Directory, but this operation could be processed
asynchronously by a background thread.
Configurtion API {{org.infinispan.lucene.directory.BuildContext}} could allow for an
optional Executor to be passed for this purpose, and if there isn't we keep current
behaviour for running it synchronously.
The tricky part I guess is making sure that the tests, which verify written consistency
-including delete operations - are refactored to be able to deal with the fact that delete
operations will happen eventually.