Github user tkuwabara789 commented on a diff in the pull request:
https://github.com/apache/storm/pull/1962#discussion_r102990972
--- Diff:
external/storm-jdbc/src/main/java/org/apache/storm/jdbc/common/HikariCPConnectionProvider.java
---
@@ -40,6 +44,10 @@ public synchronized void prepare() {
Properties properties = new Properties();
properties.putAll(configMap);
HikariConfig config = new HikariConfig(properties);
+ if(properties.containsKey("dataSource.url"))
+ LOG.info("DataSource Url: " +
properties.getProperty("dataSource.url"));
+ else if (config.getJdbcUrl() != null)
+ LOG.info("JDBC Url: " + config.getJdbcUrl());
--- End diff --
The else-if is there because with datasource.className specified (e.g.
com.mysql.jdbc.jdbc2.optional.MysqlDataSource), you either specify
datasource.url (which takes precedence) or specify the jdbc property.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---