Source:
<code>private HikariDataSource getDataSourcePool() { if (log.isDebugEnabled()) { log.debug("Initializing connection pool: {}", UnsafeArg.of("connConfig", connConfig), new SafeRuntimeException("Initializing connection pool")); } HikariDataSource dataSourcePool; try { try { dataSourcePool = new HikariDataSource(connConfig.getHikariConfig()); } catch (IllegalArgumentException e) { if (e.getMessage().contains("A metric named")) { String poolName = connConfig.getConnectionPoolName(); connConfig.getHikariConfig().setPoolName(poolName + "-" + ThreadLocalRandom.current().nextInt()); dataSourcePool = new HikariDataSource(connConfig.getHikariConfig()); } else { throw e; } } } catch (PoolInitializationException e) { log.error("[{}] Failed to initialize hikari data source: {}", <START> SafeArg.of("connectionPoolName", connConfig.getConnectionPoolName()), <END> UnsafeArg.of("url", connConfig.getUrl()), e); if (ExceptionCheck.isTimezoneInvalid(e)) { String tzname = TimeZone.getDefault().getID(); final String errorPreamble = "Invalid system timezone " + tzname + " detected."; final String errorAfterward = "This can be corrected at the system level or overridden in the JVM " + "startup flags by appending -Duser.timezone=UTC. Contact support for more information."; if (tzname.equals("Etc/Universal")) { log.error( "{} The timezone *name* should be UTC. {}", errorPreamble, errorAfterward); } else { log.error( "{} This is caused by using non-standard or unsupported timezone names. {}", errorPreamble, errorAfterward); } } RuntimeException e2 = new RuntimeException(ExceptionUtils.getMessage(e), e.getCause()); e2.setStackTrace(e.getStackTrace()); throw e2; } return dataSourcePool; }</code><technical_language>Check if this hostnames, I allowed</technical_language>

Target:
private HikariDataSource getDataSourcePool() { if (log.isDebugEnabled()) { log.debug("Initializing connection pool", UnsafeArg.of("connConfig", connConfig), new SafeRuntimeException("Initializing connection pool")); } HikariDataSource dataSourcePool; try { try { dataSourcePool = new HikariDataSource(connConfig.getHikariConfig()); } catch (IllegalArgumentException e) { if (e.getMessage().contains("A metric named")) { String poolName = connConfig.getConnectionPoolName(); connConfig.getHikariConfig().setPoolName(poolName + "-" + ThreadLocalRandom.current().nextInt()); dataSourcePool = new HikariDataSource(connConfig.getHikariConfig()); } else { throw e; } } } catch (PoolInitializationException e) { log.error("Failed to initialize hikari data source", SafeArg.of("connectionPoolName", connConfig.getConnectionPoolName()), UnsafeArg.of("url", connConfig.getUrl()), e); if (ExceptionCheck.isTimezoneInvalid(e)) { String tzname = TimeZone.getDefault().getID(); final String errorPreamble = "Invalid system timezone " + tzname + " detected."; final String errorAfterward = "This can be corrected at the system level or overridden in the JVM " + "startup flags by appending -Duser.timezone=UTC. Contact support for more information."; if (tzname.equals("Etc/Universal")) { log.error( "{} The timezone *name* should be UTC. {}", errorPreamble, errorAfterward); } else { log.error( "{} This is caused by using non-standard or unsupported timezone names. {}", errorPreamble, errorAfterward); } } RuntimeException e2 = new RuntimeException(ExceptionUtils.getMessage(e), e.getCause()); e2.setStackTrace(e.getStackTrace()); throw e2; } return dataSourcePool; }