[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-14 Thread bela
I put this on the roadmap

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848146#3848146

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848146


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-14 Thread norbert
I'd suggest to make use of the oswego concurrent library instead of using simple 
synchronisation.

e.g. use EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap instead of 
HashMap

this will both:

- enshure we use the 'best-of-breed' solution for concurrent access
- be as close as possible to the upcomming JDK 5.0 that includes the 
java.util.concurrent classes based on the oswego-library.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848129#3848129

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848129


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-11 Thread [EMAIL PROTECTED]
We cannot let logging introduce errant behavior.  If the info required for logging 
cannot be obtained in a thread safe manner without undue performance impact, then we 
do need to guard against failures due to the unsafe access and catch the exception.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847873#3847873

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847873


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-11 Thread bela
Would you be happy if the printXXX() and toString() methods would catch(Throwable) and 
not propagate it ?

Bela

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847850#3847850

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847850


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-10 Thread norbert
my company (10 empl., several hundred instances of J2EE-application-servers) is 
planning to use JBoss application-server in production starting 2005. I'll be 
technically responsible for this.
>From an enterprise customers standpoint anything that is known to fail 'every now and 
>then' is not just being seen as bad programming practice, but basically not 
>acceptable...

I'll review this synchronisation issue in more detail to find solution that hopefully 
does not compromise performance.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847822#3847822

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847822


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-10 Thread norbert
bela:

the price is that a business-transaction might fail just because loglevel is set to 
'INFO'

I don't think this is a real good idea.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847821#3847821

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847821


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-10 Thread bela
Yes. I'm willing to pay the price for occasional exceptions though in print() methods, 
but would not want to synchronize them at all.

Norbert et al: Keep those bug reports coming !

Bela

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847771#3847771

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847771


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-09 Thread bwang00
I think this is a good point. I can see this exception probably doesn't happen that 
often with REPEATABLE_READ and up. But with more relaxed isolation levels, it can be a 
problem.

Bela and I will be meeting soon. We should visit issue. What do you think, Bela?

-Ben

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847746#3847746

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847746


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-09 Thread norbert
btw:

this is not just an issue of debugging - other methods like the various 'printInfo()' 
(even in TreeCache()) eventually throwsConcurrentModificationException when being 
called while the cache is in use.

If we want to keep the underlying Collections unsynchronized for performance-reasons, 
we must never pass references to them. methods like 'LockMap.readerOwners()' are a 
'must not' in respect to concurrency.

I guess all the synchronizing must be carefully reviewed before this may go gold.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847734#3847734

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847734


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-09 Thread norbert
e.g. in NodeMap it dosn't help that the method readerOwners() is synchronized, but the 
Collection (readOwnerList_) being returned by it being unsynchronized.

It wouldn't even help to make the IdentityLock.toString()-method synchronized, since 
the JVM's lock on the IdentityLock instance does not lock the NodeMap, which would be 
required to hinder the NodeMap's synchronized method's (which lock the NodeMap, but 
not it's instance-variables) to excecute and modify the concurrenty accessed 
readOwnerList_

IMHO the only way to archive this is to use the synchronized version instead(created 
by java.util.Collection.synchronizedCollection(Collection)).

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847730#3847730

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847730


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: ConcurrentModificationException in log.debug() statement

2004-09-09 Thread norbert
I've notices these kind of exceptions in many areas of jboss-cache's 'toString()' 
methods...

It's because all the Collections being used (e.g. ArrayList for readOwnerList in 
LockMap.java, HashMap for data in Node.java ... ) are all unsynchronized and throw 
ConcurrentModificationException whenever being modified in another thread while being 
iterated.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847721#3847721

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847721


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development