From: eh552t Date: Thu, 14 Sep 2017 09:20:19 +0000 (+0200) Subject: Wait for database with mariadb connector X-Git-Tag: v1.1.0~77 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F12401%2F1;p=clamp.git Wait for database with mariadb connector With the change from Mysql to MariaDB connector maxReconnect parameters doesn't work anymore. We then need to use retriesAllDown instead but this is doing retries as fast as possible with no wait between tries so need an arbitrary high value. With maxReconnect it was waiting a time exponentially growing so a low value was enough. Change-Id: I7d03baa69bbee46d82a403f573d9f492f9720a4c Signed-off-by: eh552t Issue-ID: CLAMP-42 --- diff --git a/extra/docker/clamp/clamp.env b/extra/docker/clamp/clamp.env index e5936e35..bcbccb68 100644 --- a/extra/docker/clamp/clamp.env +++ b/extra/docker/clamp/clamp.env @@ -1 +1 @@ -SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mariadb:sequential://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647","spring.datasource.cldsdb.url":"jdbc:mariadb:sequential://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647"} \ No newline at end of file +SPRING_APPLICATION_JSON={"spring.datasource.camunda.url":"jdbc:mariadb://db:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647","spring.datasource.cldsdb.url":"jdbc:mariadb://db:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647"} \ No newline at end of file