Commit Graph

264 Commits (26d6f254db4e66f812080ef041576472d56c7c37)

Author SHA1 Message Date
Brett Wooldridge 1143d557d4 Relocate initializeDataSource() method.
Brett Wooldridge 559346dc7c Javadoc
Brett Wooldridge e6fb2a4e72 Fix shutdown race with connections added to the pool.
Brett Wooldridge 7e2ab6de3e Lengthen timeout.
Brett Wooldridge 948a88e6d6 More test coverage.
Brett Wooldridge 98cbc3b36d Don't skip rollback just because nothing is dirty.
Brett Wooldridge f3e474d209 More test coverage.
Brett Wooldridge 3de6474f37 Implement unwrap in stub.
Brett Wooldridge 1912587bba Additional unwrap test.
Brett Wooldridge b000fc23a5 Remove unused methods.
Brett Wooldridge 74e6281a02 Allow the Javassist proxy generator to generate these delegate methods.
Brett Wooldridge e43c11f7ca More test coverage.
Brett Wooldridge 7a46803cf5 Remove unused constructor
Brett Wooldridge 09ef9d59c8 Suppress stack trace generation.
Brett Wooldridge 9ce9dc0465 More tests... still need to be merged into the Java 6 branch.
Brett Wooldridge 4c35cedcb1 Special manual test for debugging issue
Brett Wooldridge dac1cfcbeb Only publish coverage when run from the travis-ci build
Brett Wooldridge 535021df41 Experimenting with code coverage.
Brett Wooldridge fc9728df8f Avoid super constructor that fills in the stacktrace.
Brett Wooldridge e3e006d6ae Experimenting with code coverage.
Brett Wooldridge 6c8803a368 Use the latest plugin available in the maven central repo.
Brett Wooldridge 6bb632c6f4 Experimenting with code coverage.
Brett Wooldridge f2e4c5805e Few more tests.
Brett Wooldridge bc2defcf11 Remove unused methods.
Brett Wooldridge e883786cea Additional safety check to only apply the new conditional when minimumIdle is 0.
Brett Wooldridge fefe559822 Fixed handle case when async connection attempts are failing but there are no longer threads waiting for connections
Brett Wooldridge 378f8aa794 Make logPoolState() "public" for testing.
Brett Wooldridge 6818783370 Improve accuracy of pool stat reporting (at a slight performance cost).
Brett Wooldridge e1e4a50f1f Move LeakTask to util pacakge.
Brett Wooldridge b959a79dc7 Minor improvements to LeakTask.
Brett Wooldridge c04f59f3b8 Minor performance tweaks and readability changes.
Brett Wooldridge 00b77f9cd3 Tweak the leak task handling and resetConnection() handling for small performance gains in the *nominal* case. Possibly slower in edge-cases (but who cares).
Brett Wooldridge cf1109b0a5 Generate classes in the proper protection domain.
Manik Surtani 63faeb81cf Add pool name to filler and closer threads
Brett Wooldridge 028996b508 Minor optimizations.
Brett Wooldridge b317b23f5b [maven-release-plugin] prepare for next development iteration
Brett Wooldridge fef19c25f7 [maven-release-plugin] prepare release HikariCP-2.1.0
Brett Wooldridge afe61e51a5 JavaDoc fixes
Brett Wooldridge 3f210301d3 Move the shutdown of the closeConnectionExecution.shutdown(), as it itself is used during the shutdown process.
Brett Wooldridge efaf86156c Fix issue with improper initialization of lastAccessTime.
Brett Wooldridge a3c7b5574f Change metrics names to omit class name.
Brett Wooldridge 83b2a6939b Expose metrics through the HikariDataSource.
Brett Wooldridge a96ce54349 Fixup OSGi bundle.
Brett Wooldridge 9dd2aeb073 Make members final.
Brett Wooldridge 5f50abe288 Include exception in rethrow.
Brett Wooldridge c6a5329c99 Switch from LinkedList to ArrayList.
Brett Wooldridge f0c3c8d4bf JavaDoc fixes.
Brett Wooldridge 819a7ec144 Simple variable renames for clarity.
Brett Wooldridge 59cd5852d1 Simple variable renames for clarity.
Brett Wooldridge 66c63a13db Fixed remove static ThreadLocal, causes a regression with multiple-pools.
Brett Wooldridge aea005d4ea Fix potential (but never encountered) NPE
Brett Wooldridge 3b7095b477 Fixed revert to using LinkedList rather than FastList in ConcurrentBag due to Tomcat leak detection.
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.