[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-31 Thread octopus
[EMAIL PROTECTED] wrote : Can you enable this in Hibernate to see if that solves the problem: | | hibernate.cache.use_minimal_puts | | Gavin and I have had a discussion on the potential problem. That, when using query cache, Hibernate will do a put on the JBossCache while retrieving

[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-30 Thread [EMAIL PROTECTED]
Can you enable this in Hibernate to see if that solves the problem: hibernate.cache.use_minimal_puts Gavin and I have had a discussion on the potential problem. That, when using query cache, Hibernate will do a put on the JBossCache while retrieving from db. This can cause a long lock that

[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-28 Thread [EMAIL PROTECTED]
So here's my understand how Hibernate uses the 2nd level cache (disclaimer: I'm not a Hibernate expert). And I haven't read the docs yet... - 1st level cache is per Session. This is an Object-level cache - 2nd level is per VM, shared by all Sessions. This is a row-based cache - When an object is

[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-28 Thread octopus
Neither READ_COMMITED nor READ_UNCOMMITED help, only NONE which is inappropriate. I do not claim it's cache's bug, but it appears to be some design issue. Let me explain. Suppose you have some read-only entity which is frequently used through application. This is exactly where I expect to take

[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-27 Thread octopus
[EMAIL PROTECTED] wrote : So here's my understand how Hibernate uses the 2nd level cache (disclaimer: I'm not a Hibernate expert). | And I haven't read the docs yet... | | - 1st level cache is per Session. This is an Object-level cache | - 2nd level is per VM, shared by all Sessions.

[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-27 Thread [EMAIL PROTECTED]
The problem is concurrent access to the same data from multiple transactions. Since we're using pessimistic locking in JBossCache, some of the transactions will time out trying to acquire locks held by other transactions. Until we implement optimistic locking, here's what you can do to work

[JBoss-dev] [JBossCache] - Re: Cache deadlock problem when using TreeCache as 2LC for h

2005-01-26 Thread [EMAIL PROTECTED]
This is serious problem if it is from cache. But I don't get what are you trying to say in the last couple sentences? And the log output also doesn't make sense to me either. Can you elaborate more? Also, do you think you can create a JUnit test case to see if you can reproduce purly from