cancel
Showing results for 
Search instead for 
Did you mean: 

Race hazard in DefaultDeploymentCache?

zmb
Champ in-the-making
Champ in-the-making
Hi all,

First of all, sorry for my english, I'm not a native speaker.

While I were playing with Activiti, I noticed the deployment cache is just a HashMap. I digged into the code of Activiti, but I didn't find any synchonization when the code access the cache. My experience, and the javadoc of the HashMap tells me that this will soon or later cause a  stuck thread. Unfortunately I couldn't produce the problem, but I saw system running for years before the simultaneous writing caused stuck thread.

Can somebody (who knows the code of Activiti in detail) confirm me that this is indeed a bug, or show me why won't be a problem?
10 REPLIES 10

jbarrez
Star Contributor
Star Contributor
@tomsko: lol … that's pretty clear. I'll update the code.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.