[infinispan-issues] [JBoss JIRA] (ISPN-4708) Make DirectoryImplementor#deleteFile apply changes asynchronously
Sanne Grinovero (JIRA)
issues at jboss.org
Wed Sep 10 08:58:23 EDT 2014
Sanne Grinovero created ISPN-4708:
-------------------------------------
Summary: 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.Beta2
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.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the infinispan-issues
mailing list