We have an application on two clustered node of Jboss 4.3 instrumented with Terracotta 2.7.3.
We use Lucene to index and search contents
We need an immediate synchronization of value because end user need to search immediately new data.
We tried an insert of 100 contents (20 concurrent threads for 5 iterations).
In this case we had problems after 3 or 4 runs.
We read the thread dump and we have thread in BLOCKED STATE never released.
So we decided to inspect terracotta with the console and we have this state on broken run.
Joined: 05/24/2006 14:23:21
Location: San Francisco, CA
Terracotta 2.7.3 is pretty much no longer supported. It is over 4 years old. Sorry for the inconvenience, but you will have to upgrade to Terracotta 3.5.1 and use Ehcache Search feature instead of hand-built logic of your own.
Wish the answer were better for you but if you can get on 3.5.x we'll help you from there.