Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3442

Infinite loop when calling ApplicationImpl._handleListenerForAnnotations under heavy load

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.0.12, 2.1.6
    • None
    • None

    Description

      Hi,

      when doing Load Tests, we recognize that we sometimes got stuck in an infinite loop, when calling the _handleListenerForAnnotations method of the ApplicationImpl class. According to our analysis, this is related to the _classToListenerForMap attribute that is is defined as plain HashMap, so no synchronisation takes place when it is accessed from several threads. Our suggestion would be, to define it as a ConcurrentHashMap instead, because according to our experience, such kind of infinite loops due to concurrency don't occur with ConcurrentHashMaps.

      Kind regards,

      Michael

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            m.dietrich Michael Dietrich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: