Commit Graph
213 Commits
Author SHA1 Message Date
高铁 2bc1f9bb80 remove jboss lib 2020-10-05 17:51:39 +08:00
高铁 ad61aebc3c fix testcase compile error 2020-06-27 22:52:46 +08:00
DigitalSonic 99270819ee Keep at least one DataSource in the pool when update by events. 2020-05-05 22:21:00 +08:00
DigitalSonic 75391df4ad add some logs to RandomDataSourceSelector 2020-04-05 21:29:34 +08:00
DigitalSonic 2466ac220f some small refactors
1. refactor RandomDataSourceSelector related classes
2. fix some testcases
2020-02-07 15:17:50 +08:00
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 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 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
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 75a094c41e add a blacklist in HighAvailableDataSource
Filter the DataSourceMap with the blacklist before returning
2020-01-21 14:58:19 +08:00
DigitalSonic 4f45e7f8dc add Testcases 2019-11-05 18:01:08 +08:00
高铁 52e3b36c5f remove proxool testcase 2019-09-22 21:11:14 +08:00
DigitalSonic c1e73f2fa9 Optimize the logic in HA Validation. 2019-02-25 14:49:45 +08:00
DigitalSonic f681871e49 RandomDataSourceSelector can load some parameters from Properties now 2019-02-02 18:30:56 +08:00
DigitalSonic dfcc16107a fix failed testcase 2019-02-02 16:46:32 +08:00
DigitalSonic 851eb96673 slightly modify
Use ConcurrentHashMap instead of HashMap in RandomDataSourceValidateThread.
Add some Log in StickyRandomDataSourceSelector.
Add some test cases for StickyRandomDataSourceSelect.
2019-02-02 16:12:23 +08:00
DigitalSonic b6c90db170 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
2019-02-01 18:21:16 +08:00
DigitalSonic 65fafdb67a add a special prefix into ha-datasource properties file
In order to put HA Datasource properties and other properties altogether into one properties file, HighAvailableDataSource add a new field named propertyPrefix.
2018-12-13 00:15:47 +08:00
DigitalSonic f355d62981 split the getter/setter for selector
Some old versions of Spring Framework would check the getter/setter of
a bean property. While they were not the same type, exception would be
thrown.
So selector’s getter&setter are all String now.
2018-08-05 23:42:59 +08:00
DigitalSonic ed3861395c Add a HA DataSource implementation 2018-05-05 23:23:46 +08:00
wenshao 0c76892937 JdbcUtils support clickhouse. for issue #2294 2018-02-04 16:26:21 +08:00
wenshao 820d0a2e1a removed unused code. 2017-06-13 19:10:25 +08:00
wenshao 3b2acf03bc DruidDataSource support killWhenSocketReadTimeout 2017-06-13 19:04:49 +08:00
wenshao c3db40c748 fixed copyright info. 2101 -> 2017 2017-03-14 21:18:18 +08:00
DigitalSonic 463ffc49a2 add test case
add a test case for DruidPooledConnection.closePoolableStatement()
method
2017-02-25 00:24:04 +08:00
haocao 75eef991a8 Add test cases and removed useless import. 2016-09-12 20:50:12 +08:00
wenshao 4838786d6a add mysql-driver 6.0.x support 2016-08-07 11:37:02 +08:00
wenshao 2619534713 fixed testcase 2016-08-05 22:32:02 +08:00
wenshao 1f48919743 support mysql_driver_6.0.x 2016-08-05 22:30:31 +08:00
高铁 352a7ca08b improved sql parser 2016-05-19 01:06:49 +08:00
高铁 a0214cce74 fixed java doc error 2016-02-16 15:24:39 +08:00
高铁 887d538a91 bug fixed for pg sql parser 2015-09-12 22:52:45 +08:00
高铁 883b1fbc64 fixed copyright 2015-08-16 23:45:03 +08:00
wenshao 3d78e79d51 xxx 2014-09-09 21:23:46 +08:00
wenshao 4ca437c63b 'a.b.c.d'; 2014-09-09 21:16:18 +08:00
wenshao 65a963f88f improve sql parser & improve GetConnecitonTimeout error message 2013-08-07 19:25:55 +08:00
wenshao 93034c6d9b add testcase 2013-08-05 22:55:23 +08:00
wenshao 32b47c9012 fixed testcase, use org.junit.Assert 2013-08-03 16:08:46 +08:00
wenshao ac7bb45366 improve oracle sql parser & sql-wall 2013-08-03 02:20:21 +08:00
wenshao fb18557438 oracle 12c support 2013-08-03 00:33:23 +08:00
wenshao 29ab2b98ed DruidDataSource support mbean register & unregister 2013-06-27 23:41:04 +08:00
wenshao d27e97f126 support reset filters 2013-06-14 15:52:47 +08:00
wenshao 0cf04d27f1 improve wall filter 2013-05-09 22:56:46 +08:00
wenshao 9c538e9582 improve sql parser 2013-04-18 11:37:11 +08:00