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

Avoid to block on topology change Index purge

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • 14.0.0.Dev04, 15.0.0.Dev07
    • Indexing
    • None

    Description

      I noticed that usually the methods annotated with @TopologyChanged return void.

      SegmentListener returns a CompletableFuture and creates a blocking thread waiting for the asynchronous corresponding purge operation.

      In particular I don't think there is any value in blocking the thread waiting for the end of the purge operation in which we align the index to the new topology.

      We should instead just fire the operation to Hibernate Search and let Hibernate Search report about a possible issue.

      Attachments

        Activity

          People

            fercoli@redhat.com Fabio Massimo Ercoli
            fercoli@redhat.com Fabio Massimo Ercoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: