Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-3073

Possible thread starvation due to rebalancing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.0.final
    • 1.6
    • cache
    • None

    Description

      We're currently rebalancing the utility cache in the system pool. This can cause starvation, for example in this scenario:

      1. Start several nodes and a cache with indexing configured.
      2. Continuously load the system with puts.
      3. Add one more node. It will join and will start processing put requests immediately.
      4. For each request, indexing processor will try to get binary metadata and will block on utility cache rebalance future. This will block all threads in the system pool.
      5. Utility cache rebalancing will be scheduled but will never start, because all threads in system pool are blocked.

      I think we should rebalance utility cache synchronously in exchange worker, like we do with the marshaller cache.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vkulichenko Valentin Kulichenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: