Bugs item #658060, was opened at 2002-12-23 17:03
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=658060&group_id=22866

Category: JBossCX
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Stefan Reich (sreich)
Assigned to: Nobody/Anonymous (nobody)
Summary: Several locking problems in connectors

Initial Comment:
While browsing the 3.0.5RC1 source I discovered several
places with inconsistent locking:

*
org/jboss/resource/adapter/jdbc/local/LocalManagedConnection:
field cels is locked on "this" in
add/removeConnectionEventListener, but locked on cels
in closeHandle and connectionError.
The field "handles" is accessed w/o a lock in
getConnection()

*
org/jboss/resource/connectionmanager/BaseConnectionManager2
The fields "handleCount" and "handles" are accessed w/o
holding the lock on "this" in isManagedConnectionFree()
and unregisterConnections()

*
main/org/jboss/resource/connectionmanager/InternalManagedConnectionPool
exception gets logged at the wrong level in
returnConnection()

*
org/jboss/resource/connectionmanager/JBossManagedConnectionPool
All methods iterating over the "pools" field must lock
to avoid ConcurrentModificationExceptions or otherwise
inconsistent state.

Diffs attached.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=658060&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to