You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/03/15 09:44:17 UTC
DO NOT REPLY [Bug 38975] New: - manager-undeploy unconditionally deletes serialized session state
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
Summary: manager-undeploy unconditionally deletes serialized
session state
Product: Tomcat 5
Version: 5.5.15
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: rm@moosauer.de
Until 5.5.9 it was possible to update a webapp via manager undeploy/deploy
without interrupting user sessions.
It made a very smooth user experience possible with quick updates and high
availability.
This is no more possible now with WAR-deployment.
Now, a undeploy _always_ removes the work-directory for that context
and SESSIONS.ser with it. A deploy/update does the same.
I know that this behavior was introduced because outdated files in the
work-directory can cause problems with a changed application. And I know
that this kind of problems is not what we want.
But the bad thing is:
It cannot be turned off or otherwise be circumvented.
Consider a nearly-productive web-application which is quite stable and only
minor bugfixes have to be done. But the application is in use and a
number of users are continously logged on and working.
These minor bug fixes are happening quite often and they _always_ compatible
with the serialized session state.
I would like to request an enhancement the manager or the container itself to
control this behavior. What I suggest, is some kind of 'soft' re-deploy without
removing the session state.
I discussed this on the users-list recently and
the problem seems to be not exactly trival. I know that the deletion of the work
directory is not done in the manager but in the container. As a result, it's not
so easy to manipulate the behavior.
A good solution could be:
Manager has a new attribute 'update' to the deploy-task. Maybe we can
use this one, the initiate a soft re-deploy.
Still better maybe an attribute 'keepSessions' to the undeploy-task. This one
would be clearly say what it does. And it could be 'false' by default to be sure.
Developers who are more familiar with tomcat's interna may have much better
suggestions. Please let me know! I would appreciate to help implementing this.
All other please vote for this enhancement because we have lost a very nice
feature here.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From rm@moosauer.de 2006-03-15 09:38 -------
And: Session state is not exaclty an artifact!
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
rm@moosauer.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
------- Additional Comments From rm@moosauer.de 2006-03-15 09:37 -------
I am perfecty on your side to let the current behavior be the default. I only
request a feature which is equivalent to "reload" for war-deployment!
Please Remy, let this one stay for a few days, so we can discuss it.
I found the issue, which led to this modification:
http://issues.apache.org/bugzilla/show_bug.cgi?id=35819
You know that reload ist not possible for WAR-deployment.
Please consider that this modification in 5.5.10 makes war-deployment
nearly unusable for production systems. Is this desirable?
And can you say how many users are taking advantage of this feature that was
available until 5.5.9? This feature was available for many years and now its
gone. Please lets take this decision not by one person alone.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From remm@apache.org 2006-03-15 14:48 -------
(In reply to comment #9)
> OK: it was META-INF/context.xml
>
> I will try to contribute an addition to the manager-docs. My first time, hope
> I get it.
There is some documentation here about pathname:
http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
Note that ${catalina.base} is not always absolute.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
remm@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WONTFIX
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From pr@objektpark.de 2006-03-15 09:27 -------
Currently we have no reload strategy for remote ant war upload with save the sessions!
This is not very cool for minor changes that not effect the classes/sessions :-(
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From rm@moosauer.de 2006-03-15 10:15 -------
Peter:
sounds great, but did not work at the first try. But will try again.
If it works I would suggest to add it to manager-documentation!
Does anyone have experience with this?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From rm@moosauer.de 2006-03-15 10:54 -------
OK: it was META-INF/context.xml
I will try to contribute an addition to the manager-docs. My first time, hope
I get it.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From remm@apache.org 2006-03-15 09:34 -------
(In reply to comment #2)
> Currently we have no reload strategy for remote ant war upload with save the
sessions!
>
> This is not very cool for minor changes that not effect the classes/sessions :-(
And then we'll have problems with the work directory artifacts not being
cleared, etc.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From pr@objektpark.de 2006-03-15 09:52 -------
Check this:
Use a absolute filename for your session state:
<Context>
<Manager pathname="${catalina.base}/sessions/myapps/SESSIONS.ser" />
</Context>
see StandardManager.file().
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From rm@moosauer.de 2006-03-15 15:07 -------
(In reply to comment #10)
> There is some documentation here about pathname:
> http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html
>
Yes, I read it. I am thinking of a cross-reference from Manager(deployment) to
Manager(Session). Besides the name it is not clear that one could affect the
other.
> Note that ${catalina.base} is not always absolute.
>
Huh, how can I learn?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
------- Additional Comments From rm@moosauer.de 2006-03-15 10:43 -------
Adding this to "WEB-INF/context.xml" in the WAR
<Context>
<Manager pathname="${catalina.base}/sessions/myapps/SESSIONS.ser" />
</Context>
seems to have no effect. I set deployXML="true" in the host-definition, but
this should be the default anyway.
Is this another bug or am I doing it wrong?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38975] - manager-undeploy unconditionally deletes serialized session state
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38975
remm@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From remm@apache.org 2006-03-15 09:17 -------
I prefer the current behavior in case of a full update of the web application,
as it is much cleaner. If you want otherwise, you should try to take advantage
of reload.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org