Commit Graph

1133 Commits (HikariCP-5.0.1)

Author SHA1 Message Date
Brett Wooldridge 3531928780 Update dependencies. 3 years ago
Brett Wooldridge ed2da5f1f4 Fix idle timeout tests, sleep too tight to idle threshold. (+1 squashed commit)
Squashed commits:
[4844f9e1] Fix idle timeout tests, sleep too tight to idle threshold. (+8 squashed commits)
Squashed commits:
[e0ec6b7f] Fix idle timeout tests, sleep too tight to idle threshold.
[c40a690d] Fix idle timeout tests, sleep too tight to idle threshold.
[7a0a1560] Synchronize idleTimeout manipulation methods
[bab9f648] Fix idle timeout tests, sleep too tight to idle threshold.
[4ee5259b] Add missing ) character in message
[e9d49fc2] Enable debug logging for tests.
[89c1ab45] Fix idle timeout tests, sleep too tight to idle threshold.
[aa06bb85] Simplify pool entry last-accessed time handling.
4 years ago
Brett Wooldridge 51bb046201 logging pattern in test (+1 squashed commit)
Squashed commits:
[db19b885]  plugin version
4 years ago
Brett Wooldridge 1991355e6b Convert to Java 11 4 years ago
Brett Wooldridge 6546dd27dd Shorten test (+3 squashed commits)
Squashed commits:
[3b09c167] Javadoc plugin version
[13079b14] Javadoc plugin version
[17a3eb97] Javadoc plugin version
4 years ago
darkslave86 2a92bcf2c7
Update HikariConfig.java (#1761)
fix alignment for config lines in log
4 years ago
Brett Wooldridge a21a6ff6cd Fix #1735 Add system property to permit lowering (or raising) the minimum allowed value for connectionTimeout and validationTimeout. 4 years ago
Brett Wooldridge d0c7d54bc9 Fix regression cause by #1605. When returning the addConnectionExecutor pool sizes
back to defaults, the core pool size must be changed before the maximum pool size.
4 years ago
Brett Wooldridge 4b8d71b8e8 Restore "strong reference" holding of PoolStats instance, and add code comment so that will not be removed by cleanup in the future. 4 years ago
Brett Wooldridge b98c79fe99 Remove javassist from module-info 4 years ago
Brett Wooldridge 6e0f4a8d44 lint cleanup 4 years ago
Brett Wooldridge 04919ad540 lint cleanup and Visual Studio Code files 4 years ago
Brett Wooldridge ade83d14cd Code cleanup. 4 years ago
Vladislav Golub 28cb7c0961
Fix prometheus histogram metric tracker for multiple pools (#1692)
* Add support for multiple prometheus histogram metric trackers

* Add tests
4 years ago
nothing 0561309e32
features: add heartbeat to keepalive connection if configure it (#1699)
* features: add heartbeat to keepalive connection if configure it

* features: add heartbeat to keepalive connection if configure it

* features: add heartbeat to keepalive connection if configure it

* features: keepalive unit test

* optimize code

* optimize code
4 years ago
freafrea 29eb681cbb
Handle short in PropertyElf (#1581) 4 years ago
sw-pachanady 00f5f202a4
Due to change in JDK-11 and later in ThreadPoolExecutor.java, setMaximumPoolSize needs to be done before setCorePoolSize, the current implementation throws IllegalArgumentException and hence prefilling of connections by setting com.zaxxer.hikari.blockUntilFilled is broken. (#1605)
Co-authored-by: rampr_000 <spachanady@gmail.com>
4 years ago
Yanming Zhou 5efab340e8
Refine JMX ObjectName (#1681)
fix https://github.com/brettwooldridge/HikariCP/issues/1678
4 years ago
Yanming Zhou d9983b32c1
Make generated proxy class final (#1661)
The final modifier is overridden by public modifier before this commit
4 years ago
Iouri Goussev b2f45a5441
Remove micrometer metrics on close (#1700)
Co-authored-by: Iouri Goussev <igoussev@xmatters.com>
4 years ago
sullis 99c213efd2
use [testcontainers-java] for Postgres unit test (#1430) 4 years ago
Caleb 43a3ce0aec
Fix typo in documentation from 'used' to 'use'. (#1555)
Co-authored-by: Caleb Larsen <caleb.larsen@rentping.com>
4 years ago
Prashant Bhat 8217f2082d
#1582: update module-info to mark optional dependencies as 'static' (#1587)
* #1582: update module-info to mark optional dependencies as 'static'

* update to hibernate.core release 5.4.16.Final and use its module name

Co-authored-by: Brett Wooldridge <brett.wooldridge@gmail.com>
4 years ago
Gili Tzabari 30c63c6372
Fixed optional dependencies that were marked as required in module-in… (#1669)
* Fixed optional dependencies that were marked as required in module-info.java

* * Upgraded bundle plugin to fix https://issues.apache.org/jira/browse/FELIX-6259.
* Windows requires the use of ${file.separator} to separate classpath entries.

* Need to use a different log4j-slf4j-impl artifact under Java 11.
4 years ago
Gili Tzabari 1d05b0ec67
Added missing dependencies (#1577)
* Added missing dependencies.

* Ant needs to be told which dependencies go on the classpath and modulepath.

* Removed unused classpath entry.
5 years ago
Gili Tzabari d9ee5fab69 Renamed Java9 artifact to Java11. 5 years ago
Gili Tzabari aaf4d3a59e Added module-info.java for Java9 5 years ago
Brett Wooldridge 009a7013cf Qualify yield() method as Thread.yield() (IDE warning for Java 14+), and add threadlocal removal attempt to bag item removal. 5 years ago
Brett Wooldridge 8df41bf748 Additional logging. 5 years ago
Brett Wooldridge fe29962233 When blocking initialization is specified, use a minimum of 16 connection creation threads. 5 years ago
Brett Wooldridge a51e6a07e8 Fixes #1489 allow specification of a user supplied exception eviction override class 5 years ago
Brett Wooldridge aeebbdf54a Fixes #1534 check resultSet.getStatement() for null in ProxyDatabaseMetaData. 5 years ago
Brett Wooldridge 93c7178012 Fixes #1528 regression in fail fast handling. 5 years ago
Brett Wooldridge f5b650bb7a Fix regression caused by #1337 6 years ago
Brett Wooldridge c953243af3 Add proxy class for java.sql.DatabaseMetaData. 6 years ago
Aleksandr Podkutin 086bf18389 Refactor/fix Prometheus metrics for multiple connection pools, add unit tests (#1331)
* Refactor/fix Prometheus metrics for multiple connection pools

Changes:
* Fix "Collector already registered that provides name:
hikaricp_connection_timeout_total" error
* Register only one HikariCPCollector instance in one CollectorRegistry
instance
* Add ability to remove metrics when connection pool is shutting down
* Add/update unit tests

* Refactor/add unit tests - metrics package

* Re-format curly braces to be inline with the whole code base
6 years ago
Enes Açıkoğlu c509ec1a3f #1337 isolation level fix for all values accept string (#1338)
* #1337 isolation level fix for all values accept string

* #1337 name convension refactor

* #1337 remove unused comment

* review fix for redundant optional
6 years ago
Vincent van Donselaar efa25c3aaa Alternative Prometheus metrics Histogram instead of locking Summary. (#1265)
* Alternative Prometheus metrics Histogram instead of locking Summary.

Add PrometheusHistogramMetricsTracker.java that uses an internal
Histogram instead of Summary. A summary is quite lock heavy.
See: https://github.com/prometheus/client_java/issues/328

* Fix incorrect magnitudes of buckets.
6 years ago
Brett Wooldridge e8e9cdd00a fixes #1287 set core pool size before max pool size 6 years ago
Brett Wooldridge 28a2afd3e6 fixed idle validation test case 6 years ago
Brett Wooldridge 86612b4bc4 Do NOT default maxPoolSize to minIdle when only minIdle is specified. 6 years ago
Brett Wooldridge cda2605acc Fixes #1308 treat a SQLTimeoutException as an evictable offense 6 years ago
Brett Wooldridge 80d382dc93 Fix idle timeout test case. 6 years ago
Brett Wooldridge c742e86838 Do not log warning about idleTimeout unless minimumIdle is less than maxPoolSize (because otherwise it does not apply) 6 years ago
Brett Wooldridge 17447199f5 Fixes #1305 ensure that ConcurrentBag.add() does not spin under high load, when waiting threads may never reach 0. 6 years ago
Brett Wooldridge 1ac94f16a2 Fixes #1287 when system property blockUntilFilled is set, use multiple threads to fill the pool. 6 years ago
Brett Wooldridge 4333989ca2 Fixes #1305 ensure that ConcurrentBag.add() does not spin under high load, when waiting threads may never reach 0. 6 years ago
Vikash Tiwari f0676c8727 Replace anonymous class with lambda (#1292) 6 years ago
Arlo Louis O'Keeffe 50c3fd1b78 Call newInstance on Constructor of driverClass (#1290)
Class.newInstance is deprecated as of Java 9. Usage should be replaced by calling Class.get(Declared)Constructor.newInstance
6 years ago
Brett Wooldridge 45912ebb57 Fix unit test breakage. 6 years ago