[
https://issues.jboss.org/browse/MODCLUSTER-220?page=com.atlassian.jira.pl...
]
Radoslav Husar updated MODCLUSTER-220:
--------------------------------------
Issue Type: Bug (was: Enhancement)
Description:
I think there is an extra REMOVE-APP event happening after fail-over. The test scenario is
simple - start a node with 6 context, kill the node and reconnect. The apps are unchanged
but 5 are remembered as were and one is removed and added back? Since they happen at the
same time it looks like it happens uselessly and can cause race condition.
{code}
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "INFO / HTTP/1.0" 200 - "-"
"ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "CONFIG / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "STATUS / HTTP/1.0" 200 58
"-" "ClusterListener/1.0"
...
127.0.0.1 - - [04/Apr/2011:19:19:03 +0200] "GET /SessionTest/SessionTestServlet?
HTTP/1.1" 200 1 "-" "Jakarta Commons-HttpClient/3.1"
...
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "INFO / HTTP/1.0" 200 575
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "CONFIG / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "REMOVE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "STATUS / HTTP/1.0" 200 58
"-" "ClusterListener/1.0"
{code}
was:
Trivial thing: I think there is an extra REMOVE-APP event happening after fail-over. The
test scenario is simple - start a node with 6 context, kill the node and reconnect. The
apps are unchanged but 5 are remembered as were and one is removed and added back? Since
they happen at the same time it looks like it happens uselessly and can cause race
condition.
{code}
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "INFO / HTTP/1.0" 200 - "-"
"ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "CONFIG / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "STATUS / HTTP/1.0" 200 58
"-" "ClusterListener/1.0"
...
127.0.0.1 - - [04/Apr/2011:19:19:03 +0200] "GET /SessionTest/SessionTestServlet?
HTTP/1.1" 200 1 "-" "Jakarta Commons-HttpClient/3.1"
...
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "INFO / HTTP/1.0" 200 575
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "CONFIG / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "REMOVE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "STATUS / HTTP/1.0" 200 58
"-" "ClusterListener/1.0"
{code}
Updating Issue Type to Bug as per comments.
Extra ENABLE-APP/REMOVE-APP event after failover
------------------------------------------------
Key: MODCLUSTER-220
URL:
https://issues.jboss.org/browse/MODCLUSTER-220
Project: mod_cluster
Issue Type: Bug
Affects Versions: 1.0.8, 1.0.10, MOD_CLUSTER_1_0_10_GA_CP01, 1.1.2.Final
Environment: Deployment on Tomcat6
Reporter: Radoslav Husar
Assignee: Michal Babacek
Fix For: MOD_CLUSTER_1_0_10_GA_CP02, 1.1.3.Final
I think there is an extra REMOVE-APP event happening after fail-over. The test scenario
is simple - start a node with 6 context, kill the node and reconnect. The apps are
unchanged but 5 are remembered as were and one is removed and added back? Since they
happen at the same time it looks like it happens uselessly and can cause race condition.
{code}
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "INFO / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "CONFIG / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:18:34 +0200] "STATUS / HTTP/1.0" 200 58
"-" "ClusterListener/1.0"
...
127.0.0.1 - - [04/Apr/2011:19:19:03 +0200] "GET /SessionTest/SessionTestServlet?
HTTP/1.1" 200 1 "-" "Jakarta Commons-HttpClient/3.1"
...
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "INFO / HTTP/1.0" 200 575
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "CONFIG / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "ENABLE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "REMOVE-APP / HTTP/1.0" 200 -
"-" "ClusterListener/1.0"
127.0.0.1 - - [04/Apr/2011:19:20:44 +0200] "STATUS / HTTP/1.0" 200 58
"-" "ClusterListener/1.0"
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira