Bug 841389
Summary: | Scaled JBoss AS7 app breaks after a couple of hits against mysql: Communications link failure | ||
---|---|---|---|
Product: | OKD | Reporter: | Nam Duong <nduong> |
Component: | Containers | Assignee: | Dan Mace <dmace> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | cgole, dueyese, jofernan, mcaspers, mpatel, wdecoste |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | devenv_1920+ | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-07 20:42:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nam Duong
2012-07-18 20:33:21 UTC
Adding the following to the mysql datasource in standalone.xml will make jboss resilient to the connection drops/closures but this is probably just hiding the real problem: <validation> <check-valid-connection-sql>SELECT 1</check-valid-connection-sql> </validation> I've added the above for AS7/EAP for mysql/postgres I am trying to verify this bug but I am seeing a new issue here where the gears go down when I run steps 3 & 4. I have tried this twice and ran into the same problem. Steps to reproduce - 1) rhc app create -a kitchensink -t jbossas-7 -s Add this upstream kitchensink repo cd kitchensink git remote add upstream -m master git://github.com/openshift/kitchensink-example.git git pull -s recursive -X theirs upstream master Then push the repo upstream git push Access the app and make sure its working 2) rhc app cartridge add -a kitchensink -c mysql5.1 3) Updated .openshift/config/standalone.xml: <datasource jndi-name="java:jboss/datasources/MysqlDS" enabled="true" use-java-context="true" pool-name="MysqlDS"> //NOTE that I had to force the setting enabled="true" 4) Updated src/main/resources/META-INF/persistence.xml: <jta-data-source>java:jboss/datasources/MysqlDS</jta-data-source> //NOTE that we need to use MysqlDS here 5) Push the changes to git Expected - The gear should be up and the app should be served Actual - Gear is down. How reproducible - Always Please file new issues for different bugs. Gears falling down could be a duplicate of bug 842977. If the originally reported issue is resolved, let's close this one out. *** Bug 844470 has been marked as a duplicate of this bug. *** verified |