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 2019/12/23 18:21:11 UTC
[Bug 64028] New: Unable to set Expiration Time for CloudMembership
Service in an Openshift Cluster
https://bz.apache.org/bugzilla/show_bug.cgi?id=64028
Bug ID: 64028
Summary: Unable to set Expiration Time for CloudMembership
Service in an Openshift Cluster
Product: Tomcat 9
Version: 9.0.27
Hardware: Other
OS: other
Status: NEW
Severity: normal
Priority: P2
Component: Cluster
Assignee: dev@tomcat.apache.org
Reporter: poornima.sivanand@gov.bc.ca
Target Milestone: -----
Hi,
I am using tomcat 9 image to deploy my application on an Openshift
Cluster. I am trying to leverage the tomcat HA using the CloudMembership
service. An excerpt from the server.xml is given below:
```
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="6">
<Manager className="org.apache.catalina.ha.session.BackupManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"/>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership
className="org.apache.catalina.tribes.membership.cloud.CloudMembershipService"
expirationTime="10000ms"/>
```
I tried without the expirationTime parameter which starts the service fine, but
there is lot of load on the openshift cluster when it fails to find a member
within the stipulated 5000ms `( it keeps failing with [catalina ] [ERROR] -
Failed to open stream at
org.apache.catalina.tribes.membership.cloud.KubernetesMembershipProvider.fetchMembers(KubernetesMembershipProvider.java:132)
[catalina-tribes.jar:9.0.27]
at
org.apache.catalina.tribes.membership.cloud.CloudMembershipProvider.heartbeat(CloudMembershipProvider.java:127)
[catalina-tribes.jar:9.0.27] )`
for which I wanted to try and increase the expirationTime to 10000ms.
```
However, the tomcat service fails to start on providing this parameter. It
fails with the following error:
```
Caused by: java.lang.NumberFormatException: For input string: "10000ms"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
~[?:1.8.0_232]
at java.lang.Long.parseLong(Long.java:589) ~[?:1.8.0_232]
at java.lang.Long.parseLong(Long.java:631) ~[?:1.8.0_232]
at
org.apache.catalina.tribes.membership.cloud.CloudMembershipProvider.init(CloudMembershipProvider.java:109)
~[catalina-tribes.jar:9.0.27]
at
org.apache.catalina.tribes.membership.cloud.CloudMembershipService.start(CloudMembershipService.java:112)
~[catalina-tribes.jar:9.0.27]
at
org.apache.catalina.tribes.group.ChannelCoordinator.internalStart(ChannelCoordinator.java:184)
~[catalina-tribes.jar:9.0.27]
... 20 more
2019-12-23 18:15:56,004 [catalina ] [FATAL] - The required Server component
failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException:
org.apache.catalina.tribes.ChannelException: java.lang.NumberFormatException:
For input string: "10000ms"; No faulty members identified.
```
Request you to kindly help me with this.
Thanks
Poornima
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64028] Unable to set Expiration Time for CloudMembership
Service in an Openshift Cluster
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64028
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
Please investigate this issue on the Tomcat user mailing list.
"10000ms" is not a valid value for "expirationTime", as the error basically
says, it indicates it is trying to parse a long. Also, the error connecting in
fetchMembers includes a root cause, which will help understand what may be
happening (please post it in the user mailing list).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64028] Unable to set Expiration Time for CloudMembership
Service in an Openshift Cluster
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64028
--- Comment #2 from Poornima Sivanand <po...@gov.bc.ca> ---
Thank you so much. I will do that.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org