Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6171

[Java Common] Connection.getChannels() leaks a potentially thread-unsafe data structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.31
    • Java Common
    • None

    Description

      the collection returned by getChannels() may be modified by other threads, leading to unsafe iteration throwing ConcurrentModificationException.

      The returned object should instead be a copy of the data and the underlying map should use a thread safe implementation to allow for the safe copying of the values() collection while another thread may be modifying the map.

      Attachments

        Activity

          People

            rgodfrey Robert Godfrey
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: