Bug 51996

Summary: JMS Initial Context leak newly created Context when Multiple Thread enter InitialContextFactory#lookupContext at the same time
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: bart.deneuter, p.mouawad
Priority: P2    
Version: 2.5.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 51691    

Description Philippe Mouawad 2011-10-08 07:59:13 UTC
What will happen is that One thread will create context and store it in MAP.
Others will create a new one but will return the first one and leak the newly created one.
Comment 1 Philippe Mouawad 2011-10-08 08:01:52 UTC
New Revision: 1180335

URL: http://svn.apache.org/viewvc?rev=1180335&view=rev
Log:
Bug 51996 - JMS Initial Context leak newly created Context when Multiple Thread enter InitialContextFactory#lookupContext at the same time

Modified:
   jakarta/jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/client/InitialContextFactory.java
   jakarta/jmeter/trunk/xdocs/changes.xml
Comment 2 Sebb 2011-10-08 14:23:08 UTC
Good catch!
Comment 3 Philippe Mouawad 2011-11-08 17:56:50 UTC
*** Bug 52154 has been marked as a duplicate of this bug. ***
Comment 4 The ASF infrastructure team 2022-09-24 20:37:47 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2587