Commit Graph
4091 Commits
Author SHA1 Message Date
DigitalSonic 5e0dc32798 refactor RandomDataSourceValidateThread
1. add cleanup action at the end of every check
2. change the key of errorCounts from "foo" to "foo-xxxxx"(DruidDataSource.getName())
2020-02-06 21:10:17 +08:00
DigitalSonic 3ebdc2ce4c small refactor 2020-02-06 15:13:47 +08:00
DigitalSonic 34aa0c8cd1 some small refactors & add tests 2020-02-06 13:53:28 +08:00
DigitalSonic eb90260afe rename some fields, add one complex test for FileNodeListener 2020-02-05 20:38:47 +08:00
DigitalSonic 12848f1b95 add a ZK node listener for HA 2020-02-05 16:41:00 +08:00
DigitalSonic ac170d5e97 some small refactors 2020-02-05 16:40:40 +08:00
DigitalSonic 7f43c62cb6 add a NodeRegister to register Node to ZK 2020-02-04 17:01:39 +08:00
DigitalSonic 6b884941fb Some small refactor 2020-02-03 16:48:22 +08:00
DigitalSonic 8c57759eaa PoolUpdater can set Schedule Period now 2020-01-28 20:14:16 +08:00
hongweiyi 8ef52029f2 support oceanbase dbtype
Signed-off-by: hongwei yi hongweiyi@hotmail.com
1. add oceanbase/oceanbase_oracle dbtype
2. update some dbtype recognition usages
2020-01-28 12:03:24 +08:00
DigitalSonic cff870e80e Refactor Pool creation logic
1. Refactor the create logic to use NodeListener instead of DataSourceCreator.createMap
2. Add destroy methods to NodeListener and PoolUpdater
3. Add a lock to prevent Node update concurrently
2020-01-22 18:46:20 +08:00
DigitalSonic e03511cdaa rename the NodeEventType to NodeEventTypeEnum 2020-01-22 16:51:16 +08:00
DigitalSonic 82adaad442 add NodeListener mechanism 2020-01-22 16:48:16 +08:00
DigitalSonic dd2b469414 add a isInBlackList() method 2020-01-22 14:37:32 +08:00
DigitalSonic 830640a11d add a blacklist in HighAvailableDataSource 2020-01-21 15:40:46 +08:00
DigitalSonic 75a094c41e add a blacklist in HighAvailableDataSource
Filter the DataSourceMap with the blacklist before returning
2020-01-21 14:58:19 +08:00
DigitalSonic 781fd69ce6 extract some Properties related method into Utils 2020-01-20 17:29:05 +08:00
DigitalSonic 1617528f77 Merge remote-tracking branch 'upstream/master' 2020-01-16 23:21:41 +08:00
wangzhijun 0d839edbf4 fix typo: merg -> merge 2020-01-16 14:05:32 +08:00
codeimport 6ee952e4c2 数据库初始化后才用判断maxEvictableIdleTimeMillis大小 2019-12-30 18:03:34 +08:00
dengliming e39f09c3dc refactor: 删除重复代码逻辑 2019-12-16 22:35:06 +08:00
Patrick a32fa1e621 modify Message "sessionStatMap is full" log-level form error to warn 2019-12-12 13:59:51 +08:00
alwaysForTop aabed61d92 Update DruidAbstractDataSource.java 2019-12-06 10:25:26 +08:00
高铁 206ef1dbe0 add method : parseStatements(String sql, String dbType, SQLParserFeature... features); 2019-11-25 22:45:38 +08:00
高铁 ef2d83f74a bug fixed for concurrent close & discard connection 2019-11-25 22:45:15 +08:00
WaylanPunch e3e04cb41b add @Override annotation 2019-11-17 14:59:45 +08:00
WaylanPunch bbfbb34af8 Collection.addAll() 2019-11-15 23:47:09 +08:00
DigitalSonic ea16b58cc0 Update RandomDataSourceSelector.java
if threads are running, interrupt them first, and then start new threads
2019-11-05 18:00:48 +08:00
DigitalSonic b6e6812d9d Update RandomDataSourceValidateThread.java
add some logs
2019-11-05 18:00:00 +08:00
高铁 bd8e80bdd8 improved oracle sql parser 2019-11-03 21:12:49 +08:00
高铁 1cdd3f28eb improved hive sql parser 2019-11-02 22:46:16 +08:00
高铁 481a0c8380 fix : get connection does not execute sql and return, add config 'checkExecuteTime', use 'lastExecTimeMillis' instead of 'lastActiveTimeMillis' 2019-11-02 20:21:37 +08:00
高铁 cb72382549 add method : DruidDataSource.discardConnection(ConnectionHolder) 2019-10-29 15:34:32 +08:00
高铁 1a4aea6c6e improved hive sql parser 2019-10-29 01:15:14 +08:00
高铁 1e8cc71c50 fix : get connection does not execute sql and return, add config 'checkExecuteTime', use 'lastExecTimeMillis' instead of 'lastActiveTimeMillis' 2019-10-27 17:19:30 +08:00
温绍锦 3ad2168e77 Merge pull request #3466 from yidasanqian/master
Fix typo
2019-10-26 21:30:29 +08:00
温绍锦 21899197b2 Merge pull request #3384 from Nonlone/master
feat:增加统计页面展示废弃连接数
2019-10-24 20:30:20 +08:00
高铁 e5e83312de support JDK 1.7 features 2019-10-20 12:21:48 +08:00
高铁 b3fd7d563b support JDK 1.7 features 2019-10-20 12:20:10 +08:00
高铁 b2f914bd15 support JDK 1.7 features 2019-10-19 19:30:46 +08:00
DigitalSonic 89c36661cb Optimize the Validation logic of RandomDataSource
treating normal SQL execution in the pool as validation, so we can skip some validation operations
2019-10-13 16:22:21 +08:00
DigitalSonic bc29864be6 close DataSource if creation failed
close the DataSource if creation failed, otherwise the create-thread will try to create Connection and log ERROR in an endless loop
2019-10-12 16:16:42 +08:00
DigitalSonic dff9a0040a Merge remote-tracking branch 'upstream/master' 2019-10-09 22:58:04 +08:00
温绍锦 e91f383fed Merge pull request #3232 from pauljoo/master
fix for JdbcSqlStat.getValue lost name/file. issue #1685
2019-10-05 14:18:31 +08:00
温绍锦 38efdf375f Merge pull request #3475 from Duncan-tree-zhou/pg_upsert_fix_duncan
修复PGOutputVisitor 输出PGInsertStatementParser的时候on Conflict Update语法的输出错误
2019-10-05 14:08:57 +08:00
高铁 f970286f67 revert #3484 2019-10-05 13:34:32 +08:00
温绍锦 200c138726 Merge pull request #3484 from TonyYan666/master
解决 SQLExprParser.primary方法 union all 前面直接包含子查询 解析异常问题
2019-10-05 08:41:05 +08:00
高铁 a262865c9b backport sql parser improved from fastsql 2019-10-05 08:19:19 +08:00
高铁 da8d80b934 backport sql parser improved from fastsql 2019-10-05 08:18:31 +08:00
高铁 b79edab45f backport sql parser improved from fastsql 2019-10-05 01:50:37 +08:00