Commit Graph

917 Commits (d6dfb31f1e4e82d4026b3f13840b64b169ba9a89)

Author SHA1 Message Date
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
Brett Wooldridge 6bff298316 Provisional fix for #714 9 years ago
Brett Wooldridge 20e6a5d923 Fixes #716 do not scan deeper than 10 nested SQLExceptions, it's typically a trap ... a chain that never terminates. 9 years ago
Brett Wooldridge 15ef1bd290 Misc. compiler warning cleanups. Still quite a few remaining in the tests... 9 years ago
Brett Wooldridge d16f4eee5b Fix test failure caused by reformatting code 9 years ago
Brett Wooldridge d5cb614639 Fix test failure caused by reformatting code 9 years ago
Brett Wooldridge b343eb8ae1 Remove compiler warnings 9 years ago
ams2990 115453a282 Change what character is used for microseconds (#707)
Currently, it uses GREEK SMALL LETTER MU (U+03BC), which doesn't display in the command prompt on Windows. After this commit, it uses MICRO SIGN (U+00B5).
9 years ago
Brett Wooldridge a8a926be09 Closes #701 Ensure the exception type is the same as 2.3.x 9 years ago
Brett Wooldridge bb86c38ac1 Add comment re: issue #701 to prevent accidental breakage of Spring Boot's FailureAnalyzer. 9 years ago
Jack 53d479cf03 added remove of ConnectionTimeoutRate and refactored metric names into constants (#698) 9 years ago
Brett Wooldridge 5f3c97702f Handle non-string properties 9 years ago
Brett Wooldridge aabc47737f Minor Java 8 changes 9 years ago
Brett Wooldridge 6c3957b04b Minor cleanup 9 years ago
Brett Wooldridge 52d1c9fb52 Minor Java 8 changes 9 years ago
Brett Wooldridge cce7c9133d Prepare 2.5.0 release (Java 8 only) 9 years ago
Brett Wooldridge 03122e85b4 Fixes #696 use iteration instead of recursion to avoid a stack overflow with deeply nested SQLExceptions 9 years ago
Brett Wooldridge 6edaa336a6 CHANGES log and cleanup. 9 years ago
Brett Wooldridge 97057a1696 Fixes #694 report if a previously reported leaked connection is returned to the pool 9 years ago
Brett Wooldridge c295eae960 Fixes #689 log a warning if default transaction isolation level cannot be detected. 9 years ago
Brett Wooldridge 6f81b02b32 Workaround for Apache Derby bug where the connection cannot be closed while a transaction is active. 9 years ago
Brett Wooldridge fa0a3e3b6f resolved #691 Remove additional check. 9 years ago
Brett Wooldridge 60224a0399 Fixes #674 fix regression caused by pull request #450 (overzealous optimisation) 9 years ago
puntogil ddfe0ab6cb Add license headers (#688) 9 years ago
Brett Wooldridge e6ece36c32 Merge commit '953b0be06d7517e63eebb6ef61c6d734621eae1e' into dev 9 years ago
TestSuiteReductionResearch ed2cce6eda Ignoring test that is redundant for com.zaxxer.hikari.pool.TestConnectionTimeoutRetry.testConnectionRetries (#678) 9 years ago
Johno Crawford 3bf8356b8d Implement List directly instead of extending ArrayList. (#680)
* Implement List directly instead of extending ArrayList.

* Remove transient dependencies.

* Support serialization.
9 years ago
Nitin 953b0be06d test for failure in case of InitializationFailFast 9 years ago
Brett Wooldridge 54c1cbaeae Fix incorrect parameter order in thread starvation warning. 9 years ago
Nitin 15468fb4bd fix comments 9 years ago
Nitin 3716edfa57 fix test 9 years ago
Nitin 9a868bd4b0 consistency cleanup, renamed requite and releaseConnection to recycle 9 years ago
Brett Wooldridge eb65b1b233 Fixes #664 do not recycle (requite) PoolEntrys that have been closed. 9 years ago
Brett Wooldridge fb95531f07 Update ProxyConnection.java
Fixes #661 add error code
9 years ago
Brett Wooldridge dd0c82613c Minor cleanup. 9 years ago
Brett Wooldridge 21eedd5502 Fixes #650 detect Amazon Redshift connection refused error code. 9 years ago
Brett Wooldridge 211bcd4657 Specify floating point accuracy. 9 years ago
Nitin 5cbb9351f8 Cherry-picked pull requests, added better Java 8+ detection. 9 years ago
Tokuhiro Matsuno 76cf343c8b Add prometheus support (#632) 9 years ago
Johno Crawford 7d1fb2ea3a PropertyBeanSetter uses default locale (#643)
Motivation:

toUpperCase works according to Locale settings, for example if your computer locale is Turkish, "idleTimeout" property turns into "setİdleTime" beacuse upper "i" is "İ" in Turkish.

Modifications:

Invoke toUpperCase with Locale.ENGLISH.

Result:

Fixes #641.
PropertyBeanSetter should work with Turkish locale.
9 years ago
Johno Crawford 88e6c7b580 Shutdown will throw NPE if invoked from checkFailFast (#621)
Motivation:

Shutdown may be invoked as a result of checkFailFast failing resulting in an NPE as the executors are setup later in the constructor.

Modifications:

Add null checks before trying to shutdown the executors.

Result:

"Graceful" shutdown.
9 years ago
Brett Wooldridge 8dde168adb Possibly Fixes #606 Fixes ##610 housekeeper was running before all class members were initialised leading to an NPE in the housekeeper. Whether or not a particular VM would recover depends somewhat on its memory model. The pool on OS X did recover after the initial failure. 9 years ago
Emilio Lopez Gabeiras 50ce1a1acc Add ORA-02399: exceeded maximum connect time to SQL_ERRORS.
Not handling it avoids eviction of the connection and corrupts the pool.
For example the following NullPointerException is thrown when trying to use the pool afterwards:
java.lang.NullPointerException at com.zaxxer.hikari.pool.PoolBase.isConnectionAlive(PoolBase.java:128)
	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:171)
	at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:147)
	at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:99)
	.......
9 years ago
Brett Wooldridge a10034ca43 Merge branch 'dev' of https://github.com/brettwooldridge/HikariCP into dev 9 years ago
Brett Wooldridge 668315c5de Fixes #596 9 years ago
Brett Wooldridge db989fff2d Merge pull request #590 from mtambara/concurrent
Add test to demonstrate concurrency problem
9 years ago
Brett Wooldridge 610ea712ef Fixes #594 store unique pool number as a String in the global system properties. 9 years ago