Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4708

Make DirectoryImplementor#deleteFile apply changes asynchronously

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.CR2
    • None
    • Lucene Directory
    • None

      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.

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              sgrinove Sanne Grinovero (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: