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

neverending AsyncStore.awaitNotEmpty during stop() of AsyncStore

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: