Commit Graph

963 Commits (cab4ee6a241fd1b46e02318b3a2ac2ea8f7d8fcb)

Author SHA1 Message Date
Brett Wooldridge 1587198e6a Change the internal handling of the initializationFailTimeout. 8 years ago
Brett Wooldridge a2717e565b Fix race condition edge case. 8 years ago
Brett Wooldridge d9cc246342 Minor cleanup. 8 years ago
Brett Wooldridge 75b697a25c Cleanup. 8 years ago
Brett Wooldridge b06eb02b6d MetricsTracker refactor. 8 years ago
Brett Wooldridge 8bb6d1e525 DRY. 8 years ago
Brett Wooldridge 907da6a2cc Fixes #793 introduce new methods for scheduled executor service that
takes/returns ScheduledExecutorService interface instances.
8 years ago
Brett Wooldridge b932b67ddb Fixes #803 Fix javadoc and re-signal interrupted flag. 8 years ago
Brett Wooldridge 033855209e ClockSource cleanup (Java 8'ification); makes everything more readable
due to static import ability.
8 years ago
Brett Wooldridge eedaf8c13f Minor cleanup. 8 years ago
Brett Wooldridge ae553ceee4 Remove unneeded check, total connections are now calculated
differently.
8 years ago
Brett Wooldridge 72e862d298 Fix race condition regression in ConcurrentBag and various other cleanup. 8 years ago
Brett Wooldridge f0b3c520c9 Great simplification of the ConcurrentBag using a direct handoff queue
(SynchronousQueue) with a huge performance win (1.8x) for contended
pool access and at least 25% for non-contended access.
8 years ago
Brett Wooldridge 9efa2f7098 Add a Tomcat web application ClassLoader/ThreadLocal leak detection test. 8 years ago
Brett Wooldridge 5544a7113f Improved ThreadLocal handling using Java 8 Supplier for initial value.
Hope this does not trigger Tomcat’s ClassLoader leak detection.
8 years ago
Brett Wooldridge a3386d080e Performance tweak, only signal if there are threads waiting. 8 years ago
Brett Wooldridge 4a454a4e9e Fixes #614 Add the connection created during checkFailFast() to the pool
unless minimumIdle=0.
8 years ago
Brett Wooldridge becaae4554 Unit test cleanup (lots of static imports). Also, the pool name will be set to the
method name of the test automatically (where possible).
8 years ago
Brett Wooldridge 61ddcb41eb Additional unit test. 8 years ago
Brett Wooldridge 1cf7457168 Remove unneeded code. This is now handled in PoolBase.newConnection(). 8 years ago
Brett Wooldridge ceffabb39f Cleaner pool configuration debug logging. 8 years ago
Brett Wooldridge c3ef9ba062 Close#801 Additional changes, including eliding the submission of a new
PoolEntryCreator to the addConnectionExecutor when there are
already enough queued tasks to cover number of pending waiters.
8 years ago
shendley f75f0e353a #776 re-introduce the check on number of waiters just before connection creation time 8 years ago
shendley f0bc58279d #776 updated thread vs connection test to gather total and maxActive when there is no work to do to verify that we don't add any extra connections 8 years ago
Brett Wooldridge 8f84e1fb12 Fix build break. 8 years ago
Brett Wooldridge 45d33c0345 Build break fix 8 years ago
Brett Wooldridge 657de54b48 Change to bound check instead of exception trap 8 years ago
Brett Wooldridge 393ca0a7e6 Recycle connection if thread is interrupted after acquisition. 8 years ago
Brett Wooldridge a3173c51ca Handle all exception types. 8 years ago
Brett Wooldridge bfcb95ae75 Remove deprecated API usage 8 years ago
Brett Wooldridge c2f1a40a1d Fixes #791 fix interrupted thread handling 8 years ago
Brett Wooldridge 579597aae9 Fixes #770 #786 added additional handling in HikariDataSource.getConnection(),
and added unit test.
8 years ago
Brett Wooldridge df2d3e66a1 Fixes #770 added additional handling in HikariDataSource.getConnection()
and improved JavaDoc.
8 years ago
Brett Wooldridge 5c1bbe6bc9 Cleanup registration of Prometheus metrics (by unregistering on close()). 8 years ago
Brett Wooldridge 14b11c025c Cleanup Java IDE warnings in tests. 8 years ago
Brett Wooldridge fbe1006486 Fixes #770 by adding a new property initializationFailTimeout and deprecating
initializationFailFast.
8 years ago
Brett Wooldridge 980d8dc2e0 Fixed #781 Log before and after startup/shutdown. 8 years ago
Brett Wooldridge 9cc1fbcfca Remove unused code from interim development. 8 years ago
Brett Wooldridge 346a2f5977 Fix bug introduced by f129797, plus some minor cleanup. 8 years ago
shendley 18077768d1 add a "Connect" histogram metric for tracking how many and how long connections are taking #518 and #769 8 years ago
shendley f129797b8b Fixes #774 Merged changes from @samhendley with modifications. 8 years ago
Brett Wooldridge 7bab1a8ccd Fixes #770 by adding a new property initializationFailTimeout and deprecating
initializationFailFast.
8 years ago
Brett Wooldridge e3b79ee044 Fixes #770 by adding a new property initializationFailTimeout and deprecating
initializationFailFast.  Exception path still needs some work… coming in the
next commit.
8 years ago
Martin Stříž 1bd23423b9 Cancel HouseKeeper task on pool shutdown (#741)
Periodic house-keeping task is scheduled during construction of
HikariPool. The resulting scheduled task is not stored and therefore it
is not cancelled during pool shutdown.

With standard behaviour, when executor is managed by HikariPool itself,
it is not an issue, because the executor is shut down on pool shutdown.
But when a custom (long running) scheduled executor is supplied via
setScheduledExecutorService, tasks are kept indefinitely causing a
memory leak.
9 years ago
Brett Wooldridge 8361cf5afe Fix stability of HikariCPCollectorTest for travis-ci build 9 years ago
Brett Wooldridge ac08f5c16b Cleaner pool size accounting. 9 years ago
Brett Wooldridge b84f0df071 Minor cleanup 9 years ago
Johno Crawford 9b7cdb849b Check the correct sql state and error code when unwrapping the exception chain. (#724) 9 years ago
Johno Crawford 135fb0bc5d Unwrap chained exceptions. (#723)
good catch
9 years ago
Brett Wooldridge 5e05adcd27 Fixes #719 only reset lastConnectionFailure after a successful dataSource.getConnection() call. 9 years ago