Commit Graph

335 Commits (cc12165b44316296049c97dd454d4f160436feec)

Author SHA1 Message Date
Brett Wooldridge 8430fce40d Switch back to setting our own context class loader during code generation. 11 years ago
Brett Wooldridge 398acad77a Change visibility. 11 years ago
Brett Wooldridge b699cbf6e7 Unwrap DataSource test. 11 years ago
Brett Wooldridge 37e26d4092 Discourage users from turning on metrics until they do something useful. 11 years ago
Brett Wooldridge a10c5e5b17 Add idle fill test. 11 years ago
Brett Wooldridge d7f7c111ce Reduce the number of filler threads ... 8 threads is too many on a hyper threaded 4-core CPU. 11 years ago
Brett Wooldridge eeec5415c6 Start implementing [optional] metrics for HikariCP. 11 years ago
Brett Wooldridge 4b0cca092c Additional connection tests. 11 years ago
Brett Wooldridge bffb8b93f6 Merged #48 fix connectionTest validation 11 years ago
Brett Wooldridge 84d82b292f Change defaults. 11 years ago
Brett Wooldridge 49a0187b41 Default minIdle the same as maxPoolSize. 11 years ago
Brett Wooldridge 16dfabbc9e Split out stateless utility functions to reduce the weight of the HikariPool class (increases readability). 11 years ago
Brett Wooldridge 564a65372f Rename idleConnectionBag to connectionBag. 11 years ago
Brett Wooldridge eda6aaddac Change connectionTimeout minimum to 250ms. 11 years ago
Brett Wooldridge 9ff609b64b Fix timing edge case in test. 11 years ago
Brett Wooldridge 5ba531c3d4 Check validation error 11 years ago
Brett Wooldridge 0abb916c7c Improve warnings for invalid configuration 11 years ago
Brett Wooldridge e1563e46d6 Use the DriverManager to create connections. 11 years ago
Brett Wooldridge 0ccd39f95f Remove deprecated calls from tests, fix test conditions for new background fill behavior. 11 years ago
Brett Wooldridge 8daf9d3005 Implement new background adding of connections to maintain a "minimumIdle" level. 11 years ago
Brett Wooldridge efa2fcc440 Restore former barrow() logic, add getCount() and size)() methods. 11 years ago
Brett Wooldridge bf2872af53 Add eviction method. 11 years ago
Brett Wooldridge a32ec77dc9 Remove acquireRetries and acquireRetryDelay 11 years ago
Brett Wooldridge f2c87b915e Add a exception log for JavassistProxyFactory static initiaiization. 11 years ago
Brett Wooldridge 91e4729b88 Revert "Use our cascading ClassLoader."
This reverts commit 183d036173.
11 years ago
Brett Wooldridge 183d036173 Use our cascading ClassLoader. 11 years ago
Brett Wooldridge d8dbad1ed9 Pull additional hibernate properties over. 11 years ago
Brett Wooldridge 0d095fb494 Remove context class loader. 11 years ago
Brett Wooldridge adeae97f3a Fix NPE. 11 years ago
Brett Wooldridge 8ec2953efd Add username and password properties as well as cleanup validation (not complete). 11 years ago
Brett Wooldridge 783bb5ae29 Handle username and password settings, treat the DriverDataSource like other datasources. 11 years ago
Brett Wooldridge 14d72a2b29 Handle username and password settings. 11 years ago
Brett Wooldridge e43864f626 Pickup additional parameters from Hibernate. 11 years ago
Brett Wooldridge 2dd9c08a3f Use an object-based key for the multi pool 11 years ago
Brett Wooldridge c4469ce58c Add support for DataSource.getConnection(username, password). 11 years ago
Brett Wooldridge 14a2891ef5 Move configuration validation into the HikariDataSource. 11 years ago
Brett Wooldridge 3a2985541e Fix unit tests to calculate proper times per retry. 11 years ago
Brett Wooldridge 3d2300adcf Fix connectionTimeout calculation. 11 years ago
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. 11 years ago
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(). 11 years ago
Brett Wooldridge b46e484bad Tighten-up code. 11 years ago
Brett Wooldridge c8c63e8c85 Tighten-up code. 11 years ago
Brett Wooldridge fb69033eb5 Fix tests to use fail fast initialization 11 years ago
Brett Wooldridge ecf531d7f3 Minor code reorganization. 11 years ago
Brett Wooldridge 99b2b765ce closes #44 potential connection leak during connection creation in some failure scenarios. 11 years ago
Brett Wooldridge 079bf9e8c2 Fix assertion. 11 years ago
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.
11 years ago
Brett Wooldridge 37c4d20099 Mark useInstrumentation deprecated and log warning. 11 years ago
Brett Wooldridge 53558b64d1 Add back java7/8 fairness optimization without breaking Java 6. 11 years ago
Brett Wooldridge 41d7750133 Fix connection timeout/retry handling and add tests. 11 years ago
Brett Wooldridge 5e1b7be484 Implement unwrap() 11 years ago
Brett Wooldridge 4a410d8593 Remove acquireIncrement from tests. 11 years ago
Brett Wooldridge 8f280e4d0c Fix calculation error that would not allow loginTimeout to go to zero. 11 years ago
Brett Wooldridge 5adebc96ea Tighten-up code. 11 years ago
Brett Wooldridge bcab411f4e Restore shutdown check ... but in a slightly different spot 11 years ago
Brett Wooldridge b7284da738 Remove redundant shutdown check (handled properly by the pool), and unnecessary assignment to null in the case where pool is already null. 11 years ago
Brett Wooldridge 04005cf619 fix #43 add null check to shutdown 11 years ago
Brett Wooldridge 4dea4c8d41 Add calculated effective acquisition time and inter-attempt delay. 11 years ago
Brett Wooldridge 3869ed0edb Remove unused acquireIncrement 11 years ago
Brett Wooldridge ccd4ddd3ee Merge branch 'openwide-java-add-override-annotations-where-needed-dev' into dev. However, some of the methods marked @Override are in fact not present in Java6 and so produce errors in the IDE and were therefore removed. 11 years ago
Brett Wooldridge 1bca94af9e Merge branch 'master' into dev 11 years ago
Guillaume Smet d415ba8353 Add @Override annotation where needed.
Starting with Java 6, we can annotate with @Override a class method implementing
a method from an interface.
11 years ago
Brett Wooldridge b4510a50c0 Retire acquireIncrement and acquireRetryDelay properties. 11 years ago
Brett Wooldridge 362be9d29d Javadoc and annotations. 11 years ago
Brett Wooldridge 3295443e9b Clean-up and tighten-up of code. 11 years ago
Brett Wooldridge d8bc281902 Fix incorrect incrementation of totalConnections when there is a retry. It should only be incremented on the first time through the loop. 11 years ago
Brett Wooldridge 2112a3470e Fix typo. 11 years ago
Brett Wooldridge 87868ca67b Update copyright. 11 years ago
Brett Wooldridge c2405e0423 Avoid unnecessary initialization of local variable. 11 years ago
Brett Wooldridge d8126eca81 Add support for DriverManager and JDBC URL-based pool configuration. 11 years ago
Brett Wooldridge af6a7dd430 Add support for DriverManager and JDBC URL-based pool configuration. 11 years ago
Brett Wooldridge 6637690f0d Add to property to control whether internal pool queries are isolated in their own
transactions or not.
11 years ago
Brett Wooldridge f1d8d9cfc5 Only set the readOnly() flag at initial construction if it is set to `true` by default. 11 years ago
Brett Wooldridge 5765ed2116 Javadoc 11 years ago
Brett Wooldridge 6149affd88 Support setting a default readOnly state for connections. 11 years ago
Brett Wooldridge 582c7a5e5a Simplify the modifyProxyFactory() method. 11 years ago
Brett Wooldridge cea6ed453f Fix broken unit test 11 years ago
Brett Wooldridge 80d80e266f Simplify the setTransactionIsolation() method, perform the check in validate() 11 years ago
Brett Wooldridge 62c7bd2a93 Minor cleanup. 11 years ago
Brett Wooldridge 4c1bbf4d36 Minor cleanup. 11 years ago
Brett Wooldridge eab48c3a7c Add ramp-up/ramp-down test. 11 years ago
Brett Wooldridge 5e0f13dcd9 Log pool state (debug) at shutdown. 11 years ago
Brett Wooldridge f1e711892b Cleanup to prevent acquisition overruns. 11 years ago
Brett Wooldridge 9cc1eb9dc9 Cleanup to prevent acquisition overruns. 11 years ago
Brett Wooldridge 111fbc3b73 Fix max connection overrunning when saturated with getConnection() calls during benchmarking. 11 years ago
Brett Wooldridge d80d793457 ConcurrentBag optimizations. 11 years ago
Brett Wooldridge 23fcf89be4 More unit tests 11 years ago
Brett Wooldridge b82dec08b7 Use WeakReferences to avoid Tomcat ThreadLocal leak warning. 11 years ago
Brett Wooldridge d79198e23b Set/reset connection state at creation time and upon closing connections. 11 years ago
Brett Wooldridge a4b9769de9 Revert "Prevent connections from one pool from bleeding over to threads requesting connections from another pool (stored in ThreadLocal)."
This reverts commit 78e1569264.
11 years ago
Brett Wooldridge 78e1569264 Prevent connections from one pool from bleeding over to threads requesting connections from another pool (stored in ThreadLocal). 11 years ago
Brett Wooldridge 8e46211806 Copy state from config. 11 years ago
Brett Wooldridge 6865443ddf Make HikariDataSource inherit from HikariConfig for convenience. This is useful
for Spring configuration, for example, because properties can be set directly on
the datasource rather than constructing a separate object.
11 years ago
Brett Wooldridge 2bc5b57575 Add catalog to the hikari configuration and into the connection state reset code 11 years ago
Brett Wooldridge aea65f9ccb Delete performance benchmarks, they are now hosted as a separate github repository. 11 years ago
Brett Wooldridge a447e52fe8 Delete performance benchmarks, they are now hosted as a separate github repository. 11 years ago
Brett Wooldridge 63bcfe2cf0 Removed method not available in Java 6. 11 years ago
Brett Wooldridge c6d40199c5 Java 6 compatibility. 11 years ago
Brett Wooldridge 07d630de5a #39 Get rid of anonymous inner class in ThreadLocal as it might possibly trigger a warning in Tomcat. 11 years ago
Brett Wooldridge 83b88f675e Fix backfill test to match new pool behavior. 11 years ago