Bug 1069428

Summary: Various concurrency problems due to unsafe Seam injections
Product: [Retired] Zanata Reporter: Patrick Huang <pahuang>
Component: Component-LogicAssignee: Sean Flanigan <sflaniga>
Status: CLOSED CURRENTRELEASE QA Contact: Damian Jansen <djansen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3CC: camunoz, djansen, pahuang, sflaniga, zanata-bugs
Target Milestone: ---   
Target Release: 3.3   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: 3.3.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-20 05:47:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1066782    

Description Patrick Huang 2014-02-25 02:15:57 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31
Build Identifier: 

If entityManager is injected into a stateless scoped bean and further being injected by annotation into Application scoped beans, concurrent access may cause a collision in Hibernate session.

Reproducible: Sometimes

Steps to Reproduce:
1. write a test or use some tool that can post different resource to same iteration simultaneously
2. run it (i.e. 5 or more concurrent requests)
Actual Results:  
Found shared references to a collection org.hibernate.HibernateException
or connection has been closed exception or some other hibernate exception occures

Expected Results:  
Runs ok

Comment 2 Patrick Huang 2014-02-25 02:29:45 UTC
https://github.com/zanata/zanata-server/pull/385

Comment 5 Damian Jansen 2014-02-28 01:55:42 UTC
Verified at add2aaa948353dea5e2d041b1e921601a24d9630

Comment 6 Sean Flanigan 2014-03-20 05:47:16 UTC
Closing VERIFIED bugs for Zanata server 3.3.2.