Skip to content

Commit

Permalink
Increase database connection timeout - experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorth committed Nov 19, 2016
1 parent 8c0a548 commit a29d49e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public Connection createConnection(String queryString) throws SQLException {
final String url = this.getJdbcUrl() + queryString;

try {
return Unreliables.retryUntilSuccess(60, TimeUnit.SECONDS, () -> getJdbcDriverInstance().connect(url, info));
return Unreliables.retryUntilSuccess(120, TimeUnit.SECONDS, () -> getJdbcDriverInstance().connect(url, info));
} catch (Exception e) {
throw new SQLException("Could not create new connection", e);
}
Expand Down

0 comments on commit a29d49e

Please sign in to comment.