Commit Graph

2232 Commits (2b21946a97daabab80e8f076e438a449d01e9da5)
 

Author SHA1 Message Date
Brett Wooldridge 2b21946a97 Prepare for 2.4.6 release 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
Brett Wooldridge 73777265b1 Merge pull request #611 from emiliolg/dev
Add ORA-02399: exceeded maximum connect time to SQL_ERRORS.
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 0e08531a23 Update README.md 9 years ago
Brett Wooldridge 5884c921a2 [maven-release-plugin] prepare for next development iteration 9 years ago
Brett Wooldridge dca9399219 [maven-release-plugin] prepare release HikariCP-2.4.5 9 years ago
Brett Wooldridge b4c358a4c3 Update changes log 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
Brett Wooldridge ed60109dcc Fixes #594 store unique pool number as a String in the global system properties. 9 years ago
Brett Wooldridge 09ab4fbfa7 Fixes #594 store unique pool number as a String in the global system properties. 9 years ago
Brett Wooldridge 15037cc156 time-out was too tight and causing sporadic travis-ci failures. 9 years ago
Brett Wooldridge 5c8248732b Paternalistic fix for developers with a weak grasp of resource ownership. 9 years ago
Brett Wooldridge 5eebe56dd1 Fixes #591 Synchronise the track statement method, and clearing of the tracked statement list. 9 years ago
Brett Wooldridge 21357a6b08 Fixes #591 Synchronise the untrack statement method to ensure that Statements are independently thread-safe. 9 years ago
Brett Wooldridge bd96f1cca4 Fixes #593 This is a very common condition rather than an "exceptional" one, so log at information level and do not classify as a "failure". 9 years ago
Matthew Tambara d59771cd16 Add test to demonstrate concurrency problem 9 years ago
Brett Wooldridge a7e0d359b0 [maven-release-plugin] prepare for next development iteration 9 years ago
Brett Wooldridge 0b485eb91a [maven-release-plugin] prepare release HikariCP-2.4.4 9 years ago
Brett Wooldridge 3e933042cf prepare for 2.4.4 release 9 years ago
Brett Wooldridge d4fc39cd03 [maven-release-plugin] prepare for next development iteration 9 years ago
Brett Wooldridge c1e69dcf90 [maven-release-plugin] prepare release HikariCP-2.4.4-RC2 9 years ago
Brett Wooldridge 0aff6b4c84 Merge branch 'dev' of https://github.com/brettwooldridge/HikariCP 9 years ago
Nitin 6ed3b18591 small but important fixes
removed var

removed resetting, delink validationTimeout from connectionTimeout

one less ref per leak task. renamed start() to schedule()

made some fields final

init of leakDetectionThreshold is not required for other instances

toString using elapsedDisplayString

fix: update poolEntry.lastBorrowed in case NopMetricsTrackerDelegate

fix tests.. try1

setting isCommitStateDirty conditionally in setAutoCommit()

again, avoid calling getNextException :)

setting lastAccess in close()

setting lastAccess required only in ctor and close

removed borrowed time from PoolEntry#toString()

now that lastAccess is moved to close(), moved condition too

one less call to System.nanoTime()

fix. using toNanos()

reverted toNanos() change, got too cumbersome

removed two calls to system time

timeout is not clock time :)

only one call saved but precise 'time taken to borrow'

unlink validation of connectionTimeout with maxLifetime

Merge

Revert
9 years ago
Brett Wooldridge fc1aea9609 Merge branch 'dev' of https://github.com/nitincchauhan/HikariCP into dev 9 years ago
Brett Wooldridge bbe692e17a Merge pull request #574 from guidomedina/gm-intellij-inspections-and-dependency-updates
IntelliJ inspections fixes and Maven updates
9 years ago
Brett Wooldridge aaea7a5d3b Merge pull request #577 from kleinron/patch-1
Update README.md
9 years ago
Nitin e4b91287cb simplified call to executeSql() 9 years ago
Nitin c7e3a8f6cc moved validateNumerics(), last in validation and is not throwing any
exception
9 years ago
Guido Medina bf83c624ed IntelliJ inspections fixes, Maven dependencies and plugins updated to latest stable. 9 years ago
Nitin 1b1b63fb3e renamed ProxyLeakTask as it has nothing to do with 'proxy' 9 years ago
Ron Klein 1f5b6c72ec Update README.md
typo
9 years ago
Nitin a6486c6417 fix: set last access even for readonly and set isCommitStateDirty wisely 9 years ago
Nitin 4065283619 better variation 9 years ago
Nitin 9d34443031 bug fix: do not call next exception if delegate == closed 9 years ago
Nitin 1a9494596f test failure fix 3 9 years ago
Nitin 5a41fee89b test failure fix 2 9 years ago
Nitin 5238d2d4c4 fix test failure 9 years ago
Nitin bd3e570192 added, corrected validation and test 9 years ago
Nitin 3095b6dc9e avoid re-setting twice in validation 9 years ago
Nitin 7b1301eeec removed unused import 9 years ago
Nitin 47ac982cc3 create leak task first and reverted long to int change 9 years ago
Nitin 2e5dd85133 replaced volatile long with int and import static TimeUnit.* 9 years ago
Nitin 0f75311732 using UNINITIALIZED 9 years ago
Nitin 2b6da07d26 cleanup 9 years ago
Nitin 82f7c15ace changes as suggested 9 years ago