Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1596

Initial state transfer with more than 200,000 nodes deadlock on eviction queue

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.4.1.SP13
    • Fix Version/s: 1.4.1.SP15
    • Component/s: Eviction
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Create a replicated cache with eviction and state transfer.
      Put 210,000 items in it.
      Start another cache instance that tries to transfer state.

      Expected result: cache transfers state and starts
      Actual result: cache deadlocks after logging several "org.jboss.cache.eviction.Region 'putNodeEvent(): eviction node event queue size is at 98% threshold value of capacity: 200000 You will need to reduce the wakeUpIntervalSeconds parameter.'"

      Show
      Create a replicated cache with eviction and state transfer. Put 210,000 items in it. Start another cache instance that tries to transfer state. Expected result: cache transfers state and starts Actual result: cache deadlocks after logging several "org.jboss.cache.eviction.Region 'putNodeEvent(): eviction node event queue size is at 98% threshold value of capacity: 200000 You will need to reduce the wakeUpIntervalSeconds parameter.'"
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Use multiple eviction regions (each has a separate eviction queue of 200,000).

      Use InactiveOnStartup and activate regions manually.
      (Which is after the eviction thread is started).

      Show
      Use multiple eviction regions (each has a separate eviction queue of 200,000). Use InactiveOnStartup and activate regions manually. (Which is after the eviction thread is started).

      Description

      When the cache has more than 200,000 entries, state transfer deadlocks on the joining node,
      due to filling up and blocking the eviction queue before the eviction thread has been started.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dereed Dennis Reed
                  Reporter:
                  dereed Dennis Reed
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: