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

ComposedSegmentedLoadWriteStore should not iterate over segments in parallel

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Final, 10.1.6.Final
    • 10.1.5.Final, 11.0.0.Dev03
    • Core
    • None

      ComposedSegmentedLoadWriteStore always parallelizes iterations, even when the consumer is a single thread doing a blocking iteration like cache.keySet().forEach(...). This will use lots of blocking threads, and will crowd out single-key cache operations, which are more sensitive to latency (because there are usually multiple single-key operations for each user request).

      It would be interesting to extend the persistence SPI so that the store knows when the user requested parallel iteration, but in the meantime it's safer to iterate over the segments in sequence.

              wburns@redhat.com Will Burns
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: