lzqdename opened a new issue #4252: connection is not closed
URL: https://github.com/apache/incubator-shardingsphere/issues/4252
 
 
   <dependency>
                        <groupId>org.apache.shardingsphere</groupId>
                        <artifactId>sharding-jdbc-core</artifactId>
                        <version>4.0.0</version>
   </dependency>
   
   In method 
org.apache.shardingsphere.shardingjdbc.jdbc.core.context.MasterSlaveRuntimeContext.createCachedDatabaseMetaData(Map<String,
 DataSource> dataSourceMap)
   
   
   code is as follows:
   try (Connection connection = 
dataSourceMap.values().iterator().next().getConnection()) {
               return new CachedDatabaseMetaData(connection.getMetaData(), 
dataSourceMap, null);
           }
   
   will this connection be closed?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to