[
https://issues.jboss.org/browse/JBTM-2867?page=com.atlassian.jira.plugin....
]
Tom Jenkinson updated JBTM-2867:
--------------------------------
Description:
During investigation of JBTM-2865 it was detected that the _work object can be accessed
outside of the _workList synchronized block. Notably this seems to be a .remove()
operation on it which can mutate the struct and may cause issues.
For example, this looks wrong:
https://github.com/tomjenkinson/narayana/blob/adda493b7bbd030eb405e3ef209...
If
https://github.com/tomjenkinson/narayana/blob/adda493b7bbd030eb405e3ef209...
was:
{code}
java.lang.NullPointerException
at com.arjuna.ats.internal.arjuna.objectstore.AsyncStore.getState(CacheStore.java:579)
at com.arjuna.ats.internal.arjuna.objectstore.CacheStore.read_state(CacheStore.java:130)
at
com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore.read_state_internal(FileSystemStore.java:331)
at
com.arjuna.ats.internal.arjuna.objectstore.FileSystemStore.read_committed(FileSystemStore.java:103)
at com.hp.mwtests.ts.arjuna.objectstore.ThreadWriter.run(CachedTest.java:69)
{code}
Investigate un-_workList protected access to _work object
---------------------------------------------------------
Key: JBTM-2867
URL:
https://issues.jboss.org/browse/JBTM-2867
Project: JBoss Transaction Manager
Issue Type: Bug
Reporter: Tom Jenkinson
Assignee: Tom Jenkinson
Fix For: 5.next
During investigation of JBTM-2865 it was detected that the _work object can be accessed
outside of the _workList synchronized block. Notably this seems to be a .remove()
operation on it which can mutate the struct and may cause issues.
For example, this looks wrong:
https://github.com/tomjenkinson/narayana/blob/adda493b7bbd030eb405e3ef209...
If
https://github.com/tomjenkinson/narayana/blob/adda493b7bbd030eb405e3ef209...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)