Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3893

Possible deadlock running AsynchronousDataStoreTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • wicket
    • None

    Description

      Running AsynchronousDataStoreTest on "slow" pc (i.e. dual core 2 GhZ, 2 Gb of ram) AsynchronousDataStoreTest doesn't terminate at all. I think that problem occurs when we submit a task which has been already submitted but not executed yet. This leads to a missed latch countdown.
      The problem doesn't occur when I decrease EXECUTIONS variable.

      A possible fix is to replace latch with a calling to awaitTermination method.

      I attach a patch.

      Attachments

        1. AsynchronousTest.patch
          2 kB
          Andrea Del Bene

        Activity

          People

            Unassigned Unassigned
            bitstorm Andrea Del Bene
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: