Commit Graph

995 Commits (e578f32153a9b8637223326d64a355202d87660e)

Author SHA1 Message Date
Uday Shankar ae9d52a362 Fixes #878 Searching for driverClass in both hikari class classloader and Thread Context ClassLoader (#902) 8 years ago
cenk akın fa79e4ece0 Fix prometheus metrics to support multiple hikaricp pools (#890) 8 years ago
bluehallu 3d53056583 Fix braces style (#888) 8 years ago
Brett Wooldridge 61be9b923d Fixes #880 Fix race condition caused by sorting collection
while the condition of sort can change.
8 years ago
Lorenzo Lucherini b626396496 Added support for non-default Prometheus CollectorRegistry (#876)
* Added support for using a Prometheus CollectorRegistry other than the default one

* Fixed a broken test
8 years ago
Brett Wooldridge e62e85cee8 Extend timeout for Java 9. Will investigate why it is
necessary on travis-ci later.
8 years ago
Brett Wooldridge 04f6d4a2bd Make test resilient to fluctuating pool names, caused by
reuse or non-reuse of forks during testing.
8 years ago
Brett Wooldridge f1f7873432 Resolve unit test failures. 8 years ago
Brett Wooldridge 8db418f969 Reset log levels reliably. 8 years ago
Brett Wooldridge 25fde9c11d Suppress tests currently untestable under Java 9 (when building on Java 9). 8 years ago
Brett Wooldridge 9e9a97508c Comment #867 Support network timeout even for Connection.isValid(). 8 years ago
Brett Wooldridge f9ee36e339 Fixes #866 mark commit state dirty when Connection.getMetaData() is called. 8 years ago
Brett Wooldridge 304ca41775 Add additional MBean test. 8 years ago
Brett Wooldridge 15df8ba563 Fixes #835 reduce spinning on connection return when the pool is
saturated by introducing a ~10 microsecond sleep every 256
iterations, otherwise yield() is used, which introduces an approx.
300ns delay.
8 years ago
Brett Wooldridge 3150673da8 Fixes #835 new change to reduce spinning on connection return
when the pool is saturated.
8 years ago
Brett Wooldridge db0db670b4 Fixes#835 prevent barging when the pool is saturated 8 years ago
Brett Wooldridge 0b5650bde7 Unit test for over-saturated pool with traffic dropping to agreement
with capacity.
8 years ago
Brett Wooldridge 65171205d6 Unit test for over-saturated pool with traffic dropping to agreement
with capacity.
8 years ago
will vuong e7a3e39f9b Better place to capture pool.Wait metric (#831)
@wvuong Thanks.  Yes, that is better.
8 years ago
Brett Wooldridge 1a6dc211dd Fixes#821 If a disconnection class exception is thrown, do not set the flag that
indicates that checkDriverSupport() is complete.
8 years ago
Will Vuong 41900e07aa Fix PrometheusMetricsTrackerTest 8 years ago
Will Vuong d875e838c3 pool.Wait metric doesn't include timed out requests
We noticed that the pool.Wait metric only captured the timings for successful connection requests and doesn't capture when a connection request times out.

I didn't want to mess with IMetricsTrackerDelegate.recordBorrowStats() so I created a recordBorrowTimeoutStats() and implementation in MetricsTrackerDelegate instead.  Feel free to tweak to your liking.
8 years ago
Brett Wooldridge 5c8b359b17 Add warning suppression. 8 years ago
Brett Wooldridge 2f31939cae Add warning suppression. 8 years ago
Brett Wooldridge 0ab35e7445 Minor cleanup. 8 years ago
Brett Wooldridge 2414ebdaa4 Queue immediate replacement of retired maxLifetime connection. 8 years ago
Brett Wooldridge 8c7033a335 Fixes #742 Add MXBean accessors to HikariDataSource to facilitate
implementation of "graceful" shutdown when JMX is not enabled.
8 years ago
Brett Wooldridge ef7da7dad4 Minor cleanup. 8 years ago
Brett Wooldridge b2cd44f97d Remove deprecated method call. 8 years ago
Brett Wooldridge ea3043dea2 Fixes #817 restore former failfast=false behavior by completely
bypassing the connection validation if initializationFailTimeout is
negative.
8 years ago
Brett Wooldridge 8433e8bd53 Remove unused classes. 8 years ago
Brett Wooldridge 243490773b Move TestFastList, add iterator test. 8 years ago
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