Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Are ActiveObjects operations and transactions thread safe?

Baron Roberts July 12, 2011

I am developing a Fisheye plugin and after doing a few cli pi's I get "WARN - Failed to retrieve Plugin Version from PAC" in the log file and Fisheye will no longer respond. I need to kill the server and do an atlas-run to get things going again.

My environment is:

Atlassian Plugin SDK 3.3.4
Fisheye 2.6.1
Mac OS X 10.6.8

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Baron Roberts July 16, 2011

After reacftoring the database access so that it is single threaded, everything works reliably with no hangs after pi. So I will conclude that either ActiveObjects transactions or DB operations on ActiveObjects are not thread safe within the context of a single servlet request/request. I would assume that across multiple request/response calls, ActiveObjects is thread safe or any Atlassian product using them would experience problems, which is not the case.

0 votes
Baron Roberts July 15, 2011

Got closer to the bottom of this. The PAC warning was a read herring. The problem appears to be due to either to my opening ActiveObjects transactions in multiple threads or just performing ActiveObjects operations in multiple threads.

So the question is what are the restrictions on ActiveObjects when it comes to threads?

0 votes
Baron Roberts July 13, 2011

Is there some additional information I can provide to help someone debug this? It is pretty annoying and seems low level so I am not sure how to work around this short of always doing an atlas-run.

TAGS
AUG Leaders

Atlassian Community Events