Re: PersistentManagerBase (etc) Patches

2004-12-17 Thread Jess Holle
Remy Maucherat wrote: Jess Holle wrote: [Yes, the Request change would still be necessary to prevent the chance of requests randomly getting their sessions passivated and recycle after they findSession() but before access().] A session can be passivated at any (bad) time (which will screw up req

Re: PersistentManagerBase (etc) Patches

2004-12-17 Thread Remy Maucherat
Jess Holle wrote: [Yes, the Request change would still be necessary to prevent the chance of requests randomly getting their sessions passivated and recycle after they findSession() but before access().] A session can be passivated at any (bad) time (which will screw up requests), and we already

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
Attached are a new PersistentManagerBase patch and a new PersistentSession class. Together these eliminate the need for the changes to ManagerBase and StandardSession (but not to Request, but this change is an innocuous reordering of a couple of lines of code). I've not had a chance to test th

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
On further analysis it seems that StandardSession is only constructed by ManagerBase and indirectly from SimpleTcpReplicationManager via the ReplicatedSession subclass. Given that SimpleTcpReplicationManager is mutually exclusive of PersistentManager, it would appear I should move my StandardSe

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
Remy Maucherat wrote: Jess Holle wrote: Where have I "faked" robustness? I will not claim I actually achieve it, but I certainly tried, fixed real race condition cases, and don't know of ones I missed. The only race condition that I can possibly imagine is on accessCount, which I think is somet

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
Remy Maucherat wrote: Jess Holle wrote: It is not useful without the rest of the changes as without the rest of the changes there are intolerable race conditions. Right. I suppose that's the end of the discussion then, it would be a waste of time to continue. -1 for your patch. If you really fee

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Remy Maucherat
Jess Holle wrote: Where have I "faked" robustness? I will not claim I actually achieve it, but I certainly tried, fixed real race condition cases, and don't know of ones I missed. The only race condition that I can possibly imagine is on accessCount, which I think is something quite unimportant

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
Remy Maucherat wrote: Jess Holle wrote: Remy Maucherat wrote: I'd appreciate comments as to what's wrong with the patch :-) I am clearly new to this area of Tomcat, but there were clear issues in this area of the code that I cannot ignore if I am to depend on PersistentManager. * Extremely in

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Remy Maucherat
Jess Holle wrote: It is not useful without the rest of the changes as without the rest of the changes there are intolerable race conditions. Right. I suppose that's the end of the discussion then, it would be a waste of time to continue. -1 for your patch. If you really feel insecure, then you c

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Remy Maucherat
Jess Holle wrote: Remy Maucherat wrote: I'd appreciate comments as to what's wrong with the patch :-) I am clearly new to this area of Tomcat, but there were clear issues in this area of the code that I cannot ignore if I am to depend on PersistentManager. * Extremely inefficient behavior whe

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
Jess Holle wrote: Remy Maucherat wrote: Jess Holle wrote: And finally, here are the patches against 5.5.6 (same as HEAD at this moment in this case). Ok, but I still dislike the patch ;) I'd appreciate comments as to what's wrong with the patch :-) Sorry I missed your previous comments somehow. I

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
Remy Maucherat wrote: Jess Holle wrote: And finally, here are the patches against 5.5.6 (same as HEAD at this moment in this case). Ok, but I still dislike the patch ;) I'd appreciate comments as to what's wrong with the patch :-) I am clearly new to this area of Tomcat, but there were clear issue

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Remy Maucherat
Jess Holle wrote: And finally, here are the patches against 5.5.6 (same as HEAD at this moment in this case). Ok, but I still dislike the patch ;) Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: PersistentManagerBase (etc) Patches

2004-12-16 Thread Jess Holle
And finally, here are the patches against 5.5.6 (same as HEAD at this moment in this case). -- Jess Holle Jess Holle wrote: Here's the patches against 5.5.4 Jess Holle wrote: For those who tried finding through the patches only to find that they did not properly map against CVS (as I just us

Re: PersistentManagerBase (etc) Patches

2004-12-15 Thread Jess Holle
Here's the patches against 5.5.4 Jess Holle wrote: For those who tried finding through the patches only to find that they did not properly map against CVS (as I just used 'diff -u' in a directory not in a proper CVS tool...), please see the attached patch files against 5.0.30 (which were don

Re: PersistentManagerBase (etc) Patches

2004-12-15 Thread Jess Holle
For those who tried finding through the patches only to find that they did not properly map against CVS (as I just used 'diff -u' in a directory not in a proper CVS tool...), please see the attached patch files against 5.0.30 (which were donoe with a proper CVS tool). I have reworked this for 5

PersistentManagerBase (etc) Patches

2004-12-13 Thread Jess Holle
A week or two ago I found I had need of the persistent session manager, PersistentManagerBase -- and also noticed its experimental status. Looking at the sources I found "FIXME" comments regarding: (1) a race condition between session passivation and session usage and (2) a lack of LRU sorting

Re: PersistentManagerBase (etc) Patches

2004-12-13 Thread Remy Maucherat
Jess Holle wrote: A week or two ago I found I had need of the persistent session manager, PersistentManagerBase -- and also noticed its experimental status. Looking at the sources I found "FIXME" comments regarding: (1) a race condition between session passivation and session usage and (2) a la