You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/02/11 16:54:54 UTC

[GitHub] [incubator-shardingsphere] lzqdename opened a new issue #4252: connection is not closed

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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] lzqdename commented on issue #4252: connection is not closed

Posted by GitBox <gi...@apache.org>.
lzqdename commented on issue #4252: connection is not closed
URL: https://github.com/apache/incubator-shardingsphere/issues/4252#issuecomment-584740452
 
 
   yes,will 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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] lzqdename closed issue #4252: connection is not closed

Posted by GitBox <gi...@apache.org>.
lzqdename closed issue #4252: connection is not closed
URL: https://github.com/apache/incubator-shardingsphere/issues/4252
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services