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

neverending AsyncStore.awaitNotEmpty during stop() of AsyncStore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.CR3
    • 4.1.0.CR2
    • Loaders and Stores
    • None

      The stop() of AsyncStore might fail to stop all threads.

      If I introduce a delay in the Store implementation, after stop() on AsyncStore methods get stuck in awaitNotEmpty(), waiting forever for a second interrupt.

      Attaching a testcase which - in my case - is able to deadlock the tests to show the problem in almost all runs. Will clean it up into a a timeout-limiting test suggestions to have it fail consistently are welcome.

      I'm attaching also a fix proposal.

              mircea.markus Mircea Markus (Inactive)
              sgrinove Sanne Grinovero (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: