mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Enhance RandomDataSourceSelector
1. shorten the checking interval when validate failed 2. provide some parameters in higher level 3. add a sleep before validation (default 0) 4. validate the DataSource concurrently
This commit is contained in:
@@ -105,6 +105,7 @@ public class HighAvailableDataSource extends WrapperAdapter implements DataSourc
|
||||
}
|
||||
if (selector == null) {
|
||||
selector = new RandomDataSourceSelector(this);
|
||||
selector.init();
|
||||
}
|
||||
if (dataSourceMap == null || dataSourceMap.isEmpty()) {
|
||||
LOG.warn("There is NO DataSource available!!! Please check your configuration.");
|
||||
|
||||
Reference in New Issue
Block a user