Commit Graph

877 Commits (HikariCP-2.0.1)
 

Author SHA1 Message Date
Brett Wooldridge b699cbf6e7 Unwrap DataSource test.
Brett Wooldridge 37e26d4092 Discourage users from turning on metrics until they do something useful.
Brett Wooldridge a10c5e5b17 Add idle fill test.
Brett Wooldridge d7f7c111ce Reduce the number of filler threads ... 8 threads is too many on a hyper threaded 4-core CPU.
Brett Wooldridge eeec5415c6 Start implementing [optional] metrics for HikariCP.
Brett Wooldridge 4b0cca092c Additional connection tests.
Brett Wooldridge 621dcdf12e Add provided dependency on coda hale metrics.
Brett Wooldridge bffb8b93f6 Merged fix connectionTest validation
Brett Wooldridge 84d82b292f Change defaults.
Brett Wooldridge 49a0187b41 Default minIdle the same as maxPoolSize.
Brett Wooldridge 16dfabbc9e Split out stateless utility functions to reduce the weight of the HikariPool class (increases readability).
Brett Wooldridge 564a65372f Rename idleConnectionBag to connectionBag.
Brett Wooldridge eda6aaddac Change connectionTimeout minimum to 250ms.
Brett Wooldridge 9ff609b64b Fix timing edge case in test.
Brett Wooldridge 5ba531c3d4 Check validation error
Brett Wooldridge 0abb916c7c Improve warnings for invalid configuration
Brett Wooldridge e1563e46d6 Use the DriverManager to create connections.
Brett Wooldridge 996b4baca1 Update changes.log.
Brett Wooldridge b51568618e Update changes.log.
Brett Wooldridge 0ccd39f95f Remove deprecated calls from tests, fix test conditions for new background fill behavior.
Brett Wooldridge 8daf9d3005 Implement new background adding of connections to maintain a "minimumIdle" level.
Brett Wooldridge efa2fcc440 Restore former barrow() logic, add getCount() and size)() methods.
Brett Wooldridge bf2872af53 Add eviction method.
Brett Wooldridge a32ec77dc9 Remove acquireRetries and acquireRetryDelay
Brett Wooldridge f2c87b915e Add a exception log for JavassistProxyFactory static initiaiization.
Brett Wooldridge 91e4729b88 Revert "Use our cascading ClassLoader."
This reverts commit 183d036173.
Brett Wooldridge 183d036173 Use our cascading ClassLoader.
Brett Wooldridge d8dbad1ed9 Pull additional hibernate properties over.
Brett Wooldridge 0d095fb494 Remove context class loader.
Brett Wooldridge adeae97f3a Fix NPE.
Brett Wooldridge 8ec2953efd Add username and password properties as well as cleanup validation (not complete).
Brett Wooldridge 783bb5ae29 Handle username and password settings, treat the DriverDataSource like other datasources.
Brett Wooldridge 14d72a2b29 Handle username and password settings.
Brett Wooldridge e43864f626 Pickup additional parameters from Hibernate.
Brett Wooldridge 2dd9c08a3f Use an object-based key for the multi pool
Brett Wooldridge 38501d74fd Remove com.sun.tools.attach from OSGi manifest.
Brett Wooldridge c4469ce58c Add support for DataSource.getConnection(username, password).
Brett Wooldridge 14a2891ef5 Move configuration validation into the HikariDataSource.
Brett Wooldridge 3a2985541e Fix unit tests to calculate proper times per retry.
Brett Wooldridge 3d2300adcf Fix connectionTimeout calculation.
Brett Wooldridge 3c20da2751 DataSource.setLoginTimeout() is in seconds. Make sure the milliseconds passed in to addConnection(timeout) is converted to seconds. Also add a validation to prevent sub-second retries that would be converted to 0 when performing a millisecond to second conversion using TimeUnit.
Brett Wooldridge 27cd322fba Closes#45 if the PropertyBeanSetter fails to find the setter method via "set" + first property character capitalized, try "set" + property fully capitalized. This handles cases where "url" is used as a property but the setter is setURL() rather than setUrl().
Brett Wooldridge b46e484bad Tighten-up code.
Brett Wooldridge c8c63e8c85 Tighten-up code.
Brett Wooldridge fb69033eb5 Fix tests to use fail fast initialization
Brett Wooldridge ecf531d7f3 Minor code reorganization.
Brett Wooldridge 99b2b765ce closes potential connection leak during connection creation in some failure scenarios.
Brett Wooldridge 079bf9e8c2 Fix assertion.
Brett Wooldridge bcfcf71721 Don't log every failed connection attempt, it could flood the log during a
database restart on a busy server.  Log at most 1 per second.  Always
log when debug is enabled.
Brett Wooldridge 37c4d20099 Mark useInstrumentation deprecated and log warning.