This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git.


    from 693d365  fix #15863 : Space added between the following languages. 
(#15869)
     add 3a8517a  Refactor DataSourcePoolDestroyer (#15862)

No new revisions were added by this update.

Summary of changes:
 .../shardingsphere-infra-common/pom.xml            |  5 ++
 .../pool/destroyer/DataSourcePoolDestroyer.java    | 49 ++++++++++++++----
 .../DataSourcePoolActiveDetector.java}             | 16 +++---
 .../DataSourcePoolActiveDetectorFactory.java}      | 28 ++++------
 .../type/DefaultDataSourcePoolActiveDetector.java} | 21 +++-----
 .../type/HikariDataSourcePoolActiveDetector.java}  | 38 +++++---------
 .../props/DataSourcePropertiesValidator.java       |  8 +--
 .../metadata/resource/ShardingSphereResource.java  | 20 ++------
 ...tasource.pool.destroyer.DataSourcePoolDestroyer | 19 -------
 ...destroyer.detector.DataSourcePoolActiveDetector |  4 +-
 ...yTest.java => DataSourcePoolDestroyerTest.java} | 45 +++++++++++------
 .../DataSourcePoolActiveDetectorFactoryTest.java   | 18 +++----
 .../DefaultDataSourcePoolActiveDetectorTest.java}  | 19 +++----
 .../HikariDataSourcePoolActiveDetectorTest.java    | 59 ++++++++++++++++++++++
 .../impl/DefaultDataSourcePoolDestroyerTest.java   | 48 ------------------
 .../fixture/MockedDataSourcePoolMetaData.java      |  2 +-
 .../resource/ShardingSphereResourceTest.java       | 42 ++++-----------
 .../resource/fixture/CloseableDataSource.java      | 24 ---------
 .../mode/manager/ContextManager.java               | 12 +----
 .../metadata/persist/MetaDataPersistService.java   | 10 ++--
 .../cluster/ClusterContextManagerBuilder.java      |  2 +-
 .../shardingsphere/test/mock/MockedDataSource.java | 10 +++-
 22 files changed, 223 insertions(+), 276 deletions(-)
 copy 
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/{DataSourcePoolDestroyer.java
 => detector/DataSourcePoolActiveDetector.java} (75%)
 rename 
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/{DataSourcePoolDestroyerFactory.java
 => detector/DataSourcePoolActiveDetectorFactory.java} (63%)
 rename 
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/{impl/DefaultDataSourcePoolDestroyer.java
 => detector/type/DefaultDataSourcePoolActiveDetector.java} (67%)
 rename 
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/{impl/HikariDataSourcePoolDestroyer.java
 => detector/type/HikariDataSourcePoolActiveDetector.java} (50%)
 delete mode 100644 
shardingsphere-infra/shardingsphere-infra-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.datasource.pool.destroyer.DataSourcePoolDestroyer
 copy examples/docker/shardingsphere-proxy/governance/run.sh => 
shardingsphere-infra/shardingsphere-infra-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.datasource.pool.destroyer.detector.DataSourcePoolActiveDetector
 (78%)
 rename 
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/{DataSourcePoolDestroyerFactoryTest.java
 => DataSourcePoolDestroyerTest.java} (51%)
 copy 
shardingsphere-kernel/shardingsphere-transaction/shardingsphere-transaction-type/shardingsphere-transaction-xa/shardingsphere-transaction-xa-core/src/test/java/org/apache/shardingsphere/transaction/xa/jta/datasource/swapper/DataSourcePropertyProviderLoaderTest.java
 => 
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/detector/DataSourcePoolActiveDetectorFactoryTest.java
 (54%)
 rename 
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/{impl/HikariDataSourcePoolDestroyerTest.java
 => detector/type/DefaultDataSourcePoolActiveDetectorTest.java} (68%)
 create mode 100644 
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/detector/type/HikariDataSourcePoolActiveDetectorTest.java
 delete mode 100644 
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/datasource/pool/destroyer/impl/DefaultDataSourcePoolDestroyerTest.java
 delete mode 100644 
shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/resource/fixture/CloseableDataSource.java

Reply via email to