Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1887

org.apache.aries.transaction.blueprint is not thread safe

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: transaction-blueprint-2.2.0
    • Component/s: Transaction
    • Labels:
      None

      Description

      The class ComponentTxData in org.apache.aries.transaction.blueprint uses a HashMap

      private Map<Method, TransactionalAnnotationAttributes> txMap = new HashMap<Method, TransactionalAnnotationAttributes>();

      This is very dangerous because txMap can be modified and accessed after initialization.

      It should be replaced with a ConcurrentHashMap.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                nicolas.dutertry Nicolas Dutertry
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: