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.sivan...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org