362 Commits (2.3.x)

Author SHA1 Message Date
Brett Wooldridge fd15648979 Minor performance tuning to avoid excessive connection attempts of downed databases.
Mihai Chezan 26bbb7cfae Close connectons async.
Why: When db goes down, it can cause HikariCP to block on getConnection
more than the allowed connectionTimeout, depending on jdbc driver
timeout setting. In some cases, this could be a long time.
Added a test that shows this behaviour. The test will fail w/o the
changes to HikariPool.
Brett Wooldridge bef71f78af Resolve support ``hikaricp.configurationFile`` system property to define location to load configuration properties file.
Brett Wooldridge 365908a42e Code cleanup.
Brett Wooldridge 00fb00bb56 Fix regression in code-generation caused by cleanup.
Brett Wooldridge 4f888e8c60 Minor cleanup.
Brett Wooldridge 08a4217c77 Change next release version to 2.1.0 due to large internal refactor.
Brett Wooldridge aff5c8ef9c Fix issue make get/setTransactionIsolation() fit proper bean pattern.
Brett Wooldridge 87929a51a1 Declare PoolBagEntry class final.
Brett Wooldridge 5384430119 Javadoc.
Brett Wooldridge 00a1a99ee7 Load properties from file-system or as resource stream. Cleanup property checking.
Brett Wooldridge 4b32fa55eb Fix javadoc.
Brett Wooldridge cfa8318aa0 More cleanup/tighten-up of the ConcurrentBag.
Brett Wooldridge 1debdcc61b Fix javadoc.
Brett Wooldridge 8f24990e87 Fix javadoc.
Brett Wooldridge 2bca598c1b Merge hikaricp changes into hikaricp-java6.
Brett Wooldridge b5967fc5a1 Significant refactor of pool internals. Connections are now always wrapped in new proxies in getConnection().
Brett Wooldridge 1eb35356c5 Add test to measure barging behavior.
Brett Wooldridge 281c287288 Fix fix accounting issue with totalConnections when aborting connections during shutdown.
Brett Wooldridge cc3cbdeb04 Merge commit '636a464b27877586f4cd6ef1e271b51d6b0c6ebb' into dev
Merge difference synchronization from @ams2990
Brett Wooldridge 5cb1000f47 [maven-release-plugin] prepare for next development iteration
Brett Wooldridge d3070249f2 [maven-release-plugin] prepare release HikariCP-2.0.1
Andrew Shulman 636a464b27 Sync Java 6/7 and Java 8 versions
Brett Wooldridge 22f86cce82 Fix add java version check around ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy() for Java 6.
Brett Wooldridge 5e75b12a99 [maven-release-plugin] prepare for next development iteration
Brett Wooldridge 376cf6972e [maven-release-plugin] prepare release HikariCP-2.0.0
Brett Wooldridge 595fc00d69 pom.xml experimentation.
Brett Wooldridge fd3bda8015 pom cleanup
Brett Wooldridge 2fb08a44cd Fix race condition that would lead to un-acquired connection and timeout.
Brett Wooldridge 9f65bfb033 Fix indentation.
Brett Wooldridge 24176d8b98 Add version to submodules.
Brett Wooldridge 99f2ebf6db Use internal flag to determine whether to persist generated proxy classes.
Brett Wooldridge f4c86f8f40 Fix recursively call isWrapperFor() and unwrap() per spec
Brett Wooldridge 907313c69f Fix do not call addBagItem() from housekeeping thread if minimumIdle is 0.
Brett Wooldridge a2c2b28fb0 Synchronize HikariCP-java6 code with HikariCP for pull request
Keir Nellyer 39cfa5ab77 Allow a custom ThreadFactory to be defined for each pool, this ThreadFactory will be used to create all threads used in that pool
Brett Wooldridge 5c5b9d009b Mask password in logging wherever it occurs.
Brett Wooldridge b01360a3ec Use switch...case instead of cascading if..else
Brett Wooldridge a54e50a0ae Add an MBean function to dump the current state of the pool (via a dump of the ConcurrentBag)
Brett Wooldridge 19eaea93aa Fix when we grow the original array, use the same Class that was specified during construction.
Brett Wooldridge 2f71270235 Fix JNDI lookup bug where properties were not being passed through.
Brett Wooldridge dfad68a3a6 Merge branch 'dev' of https://github.com/brettwooldridge/HikariCP into dev
* 'dev' of https://github.com/brettwooldridge/HikariCP:
  Suppress password in debug property output
Brett Wooldridge 42eeb21c68 Make isolateInternalQueries also cause new ConnectionProxy instances to be created for each getConnection()
Brett Wooldridge 1321d385b2 Suppress password in debug property output
Brett Wooldridge be786966da Change shutdown() to close() to avoid IDE warning about unclosed resources.
Brett Wooldridge 82d506f67d Handle the case where one username is null and the other is not.
Jonas Berlin d1138e6e5f Fix not to throw NPE if username or password is null
Brett Wooldridge 614fcd8f47 Merge pull request from NitorCreations/closeable
Make HikariDataSource implement Closeable
Jonas Berlin 4c238613b0 Fix timeout calculation when skipping unusable connections from pool
Jonas Berlin 3e1ad09a93 Make HikariDataSource implement Closeable
Brett Wooldridge ed9c5cad01 Accept the user specified poolName verbatim.
Brett Wooldridge 700e423e89 Better fix for prepend "HikariPool-" to user specified pool names. Don't unconditionally set pool name to generated name.
Cristi Popovici 6b4b6c9bb9 reverted changes for continue statement
Cristi Popovici 22f24f1813 reverted changes for continue statement
Cristi Popovici 9a78982f30 removed cast
Cristi Popovici 0427d48fb6 compare strings with equals
Cristi Popovici cd808addcc removed unnecessary return statements
Cristi Popovici 93733cd28b removed unnecessary continue statement
Brett Wooldridge 2e9b07be84 Fix build timing issue
Brett Wooldridge 89f70f0a4d Fix build timing issue
Brett Wooldridge d6ddff7ff5 Minor cleanup.
Brett Wooldridge 3451c37445 Prepare for Java 6/7 to Java 8 split.