Commit Graph

340 Commits (43910e61dfee9fd69e8b82208c9f76bc05ecfe84)

Author SHA1 Message Date
Brett Wooldridge 3261cc87e3 [maven-release-plugin] prepare for next development iteration 10 years ago
Brett Wooldridge b508990e4e [maven-release-plugin] prepare release HikariCP-2.3.0-rc1 10 years ago
Brett Wooldridge c9f6d90ab2 Javadoc fixes 10 years ago
Brett Wooldridge 0dcef448f6 Prepare for 2.3.0-rc1 10 years ago
Brett Wooldridge 590dbf1870 Add some comments. Add evicted check back to housekeeper to cover a rare race condition
where the connection is being released at the same time the maxLifetime eviction shedule is
running.  That could have allowed the bag entry to be marked evicted, but have the check
in releaseConnection() just missing it, which would result in a maxLifetime connection sitting
in the pool for an indefinite amount of time.
10 years ago
Brett Wooldridge fafa5050ad Remove maxLifeTime check from getConnection() and use housekeeping scheduler instead. 10 years ago
Brett Wooldridge a4c6c03ded ConcurrentBag to common code refactor (share code between Java 6/7 and Java 8) 10 years ago
Brett Wooldridge d47d5a7b0e Fix #207 Make PoolUtilities stateful, because using statics causes issues when two pools with different drivers and different capabilities exist in the same JVM. Pull out non-pooly things into a separate utility class. 10 years ago
Brett Wooldridge 7e7d124a93 Bump revision number due to large internal refactor. 10 years ago
Brett Wooldridge 87be723621 Issue #206 suppress noisy exceptions in "quiteSleep()" method. 10 years ago
Brett Wooldridge a6152f58a9 Merge more common code. Benchmarks are showing no negative impact so far. 10 years ago
Brett Wooldridge 688d1911e2 Merge more common code. HikariConfig is not a critical class, but we need to be careful about what we merge due to performance implications of inheritance and virtual dispatch that cannot be optimized by the JIT. 10 years ago
Brett Wooldridge ce6d72dd00 Remove some redundant code and inaccurate comment. 10 years ago
Brett Wooldridge 9d486abbfa Massive structure refactor. Make IDE setup hell, but greatly improves maintainability. 10 years ago
Brett Wooldridge 82f98fc57e Project restructuring experiment 10 years ago
Brett Wooldridge d304c511b3 Be careful coding while drinking. 10 years ago
Brett Wooldridge b84727e4c9 Use execute() instead of submit() for the addConnectionExecutor. 10 years ago
Brett Wooldridge 527c8ce59c Issue #206 Throw an exception if the bag is closed, this will cause addConnection() to cleanly close the opened connection and correctly decrement the pool count. 10 years ago
Brett Wooldridge 396ecf4008 Somewhere along the way we lost our override of isClosed()... 10 years ago
Brett Wooldridge ce515ac3b8 Scrub, scrub. A little cleaner. 10 years ago
Brett Wooldridge 855dbafb86 Cleanup pool suspend/resume semaphore use, add unit test. 10 years ago
Brett Wooldridge 560f6e402a Minor cleanup. Make isUseJdbc4Validation final. 10 years ago
Brett Wooldridge e78d68e65f Cleaner still, rolls back totalConnection() increment, and sets last connection failure. 10 years ago
Brett Wooldridge 949bff3997 Even cleaner connection test check. 10 years ago
Brett Wooldridge 66118ff4c4 Minor cleanup. Listener is never null. 10 years ago
Brett Wooldridge 501db5ab6e Cognitive load shift. 10 years ago
Brett Wooldridge 26d6f254db Fix #203 unregister metrics at shutdown. 10 years ago
Brett Wooldridge 03542eb579 Fix #198 rework of the fix 10 years ago
Brett Wooldridge 3b1ae79d7d Minor cleanup. 10 years ago
Brett Wooldridge d625ed66ec Fix #204 fix leak detection bug introduced by refactor 10 years ago
Brett Wooldridge cf99c59519 Remove redundant checks. 10 years ago
Brett Wooldridge c78fc35c27 Fix #198 handle pull shutdown synchronisation issues 10 years ago
Brett Wooldridge da4ffe6d18 Fix a fast-spin loop when the pool is suspended and and connections are attempted to be added. 10 years ago
Brett Wooldridge 9f3c5ed2ca Merge Java 8 changes into Java 6/7 project. 10 years ago
Brett Wooldridge 6717ffd7f2 Cleaner, more performant way to handle close connections. 10 years ago
Brett Wooldridge cc42027a92 Mmake HikariPool.getConnection() a little tighter (and more readable). 10 years ago
Brett Wooldridge 0b8779ed26 Small LeakTask refactor just to make HikariPool.getConnection() a little tighter (and more readable). 10 years ago
Brett Wooldridge 0182489c7b Improve pool accounting under "adverse" conditions such as aborted connections. 10 years ago
Brett Wooldridge 0999b831d5 Revert double-check locking for cleaner memory-fence based code. 10 years ago
Brett Wooldridge 01221526f8 Forget about accounting sanity checks when the pool is going down (who cares?). Prevent connections from being added when the pool is suspended. Remove eviction from from abortActiveConnections() as it is already done in softEvictConnections(). "break" in abort method should have been continue. 10 years ago
Brett Wooldridge ad3f9eaa55 Go ahead and implement double-checked locking, this is a low traffic method. 10 years ago
Brett Wooldridge d71db82715 Fix #198 improve shutdown handling with respect to asynchronous close() calls that might be occurring. 10 years ago
Brett Wooldridge d097828d9d Fix #198 back out original optimisation as it masks application errors. 10 years ago
Brett Wooldridge 7485e2dd8b Fix #199 fix possible race, while avoiding heavy weight synchronisation 10 years ago
Brett Wooldridge dda85af7d6 Make isClosed volatile for cross-thread visibility. 10 years ago
Brett Wooldridge 29629e5468 Try to fix intermittent timeout in tests 10 years ago
Brett Wooldridge 24995e3cba cleanup 10 years ago
Guillaume Smet db0231ee5b Fix copy of properties when using a jdbc url.
Constructor Properties(Properties properties) is not a copy constructor.
10 years ago
Guillaume Smet 2b1e0f77bb Fix copy of properties when using a jdbc url.
Constructor Properties(Properties properties) is not a copy constructor.
10 years ago
Brett Wooldridge e3093d76a1 Prepare next development iteration. 10 years ago
Brett Wooldridge bbb5061130 Cleanup. Minor API change for new feature. 10 years ago
Brett Wooldridge 7604d30434 Fix #181 implement pool suspend/resume for use in failover 10 years ago
Brett Wooldridge f4fffb5f1e Merge branch '2.2.5-rc1' into dev
* 2.2.5-rc1:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release HikariCP-2.2.5-rc3
  Fix a bug reported on Stackoverflow.
  Fix #187 only set transaction isolation if it differs from the default.
10 years ago
Brett Wooldridge a7a84e9497 [maven-release-plugin] prepare for next development iteration 10 years ago
Brett Wooldridge 7f8b4129ce [maven-release-plugin] prepare release HikariCP-2.2.5-rc3 10 years ago
Brett Wooldridge 48e0acb982 Fix a bug reported on Stackoverflow. 10 years ago
Brett Wooldridge 4c0c9711e1 Fix #187 only set transaction isolation if it differs from the default. 10 years ago
Brett Wooldridge 327b738a42 Merge branch '2.2.5-rc1' into dev
* 2.2.5-rc1:
  Set IS_JDBC41 flag if the call to setNetworkTimeout() succeeds.
  Remove isUseNetworkTimeout member.
10 years ago
Brett Wooldridge 04e48feb30 Set IS_JDBC41 flag if the call to setNetworkTimeout() succeeds. 10 years ago
Brett Wooldridge c1efc19c76 Remove isUseNetworkTimeout member. 10 years ago
Brett Wooldridge 07bb4795ce Merge release candidate changes, but fix pom version. 10 years ago
Brett Wooldridge ca054975da Minor cleanup (removal of redundant code). Testing JDBC 4.1 via getNetworkTimeout() is not viable on some drivers, but checking setNetworkTimeout() is. 10 years ago
Brett Wooldridge 4c362acfa4 [maven-release-plugin] prepare for next development iteration 11 years ago
Brett Wooldridge 0034c3ec33 [maven-release-plugin] prepare release HikariCP-2.2.5-rc2 11 years ago
Brett Wooldridge fde7912363 [maven-release-plugin] rollback the release of HikariCP-2.2.5-rc2 11 years ago
Brett Wooldridge 30d124fa29 [maven-release-plugin] prepare release HikariCP-2.2.5-rc2 11 years ago
Brett Wooldridge 546230c3bd Fix #185 additional checks for AbstractMethodError 11 years ago
Brett Wooldridge 80851e54de [maven-release-plugin] prepare for next development iteration 11 years ago
Brett Wooldridge 4fa8a2e741 [maven-release-plugin] prepare release HikariCP-2.2.5-rc1 11 years ago
Brett Wooldridge ad9945f63d [maven-release-plugin] rollback the release of HikariCP-2.2.5-rc1 11 years ago
Brett Wooldridge 8599171059 [maven-release-plugin] prepare release HikariCP-2.2.5-rc1 11 years ago
Brett Wooldridge 1a1cf87c0e Tighten-up code. 11 years ago
Brett Wooldridge 5880aac801 Fix #183 use propertyNames() enumeration to ensure picking up default properties. 11 years ago
Brett Wooldridge 5b6d846a3c Remove calls to getConnectionTimeout(), rely on the member variable which is refreshed every 30 seconds. 11 years ago
Brett Wooldridge 2fdf515164 Fix #183 use propertyNames() enumeration to ensure picking up default properties. 11 years ago
Brett Wooldridge 6758ae4447 Improve readability a fraction. 11 years ago
Brett Wooldridge 0fe4e4a0f1 Tighten-up code. 11 years ago
Brett Wooldridge 201c25aae6 Exclude proxies from coverage after adding a bundle of trivial methods (where writing tests just for coverage would be pointless) 11 years ago
Brett Wooldridge f53592a9ce Exclude proxies from coverage after adding a bundle of trivial methods (where writing tests just for coverage would be pointless) 11 years ago
Brett Wooldridge df8a3ba2be Minor test cleanup. 11 years ago
Brett Wooldridge ea4777d8fb Fix #178 rename closeIdleConnections() to softEvictConnections() and support "evict on return" 11 years ago
Brett Wooldridge 22389819d5 Fix #177 implement full transaction state tracking 11 years ago
Brett Wooldridge 28662ee045 Minor cleanup. 11 years ago
Brett Wooldridge f3f689e2dc Checkpoint checkin for full commit state tracking. 11 years ago
Brett Wooldridge a28c2a22cd Remove unused import. 11 years ago
Brett Wooldridge 95d0e2494f Auto-commit init SQL (was broken after previous code re-ordering) 11 years ago
Brett Wooldridge 920873390d just code cleanup 11 years ago
Brett Wooldridge 9b7dfd2edb just code cleanup 11 years ago
Brett Wooldridge a51ce9b04d [maven-release-plugin] prepare for next development iteration 11 years ago
Brett Wooldridge 64b1a82750 [maven-release-plugin] prepare release HikariCP-2.2.4 11 years ago
Brett Wooldridge 1d0879c0ee Fix #175 add additional SQLFeatureNotSupportedException detection for misbehaved MariaDB driver 11 years ago
Brett Wooldridge 37e24d630a Fix #176 take the timeout value at face-value 11 years ago
Brett Wooldridge fe58b4b435 [maven-release-plugin] prepare for next development iteration 11 years ago
Brett Wooldridge d81e335632 [maven-release-plugin] prepare release HikariCP-2.2.3 11 years ago
Brett Wooldridge 3cc501ee3c Fix #172 Further shadow runtime dependency on Codahale metrics from reflection performed by Spring and other IoC containers. 11 years ago
Brett Wooldridge f619fbfb06 Move code from static initializer into invocable static method. 11 years ago
Brett Wooldridge 55fd70c097 Minor cleanup. 11 years ago
Brett Wooldridge 749033e9d4 [maven-release-plugin] prepare for next development iteration 11 years ago
Brett Wooldridge 23c52f46a5 [maven-release-plugin] prepare release HikariCP-2.2.2 11 years ago
Brett Wooldridge 4132322201 Rename metrics. 11 years ago