Commit Graph

837 Commits (aaea7a5d3bd10e5041d4161fe089bb841cc07af5)

Author SHA1 Message Date
Nitin 573660dfe1 future safe from statement reorder 9 years ago
Nitin 64dd93fe8f minor 9 years ago
Nitin 85e41abf10 context.close is correct. 542 may have other reason/s! 9 years ago
Nitin b525e0f7ef set maxPoolSize = minIdle only if undefined, consistent error messages 9 years ago
Nitin ad754d085b made transactionIsolation final 9 years ago
Nitin fde88d0659 if user specified, set transaction isolation level 9 years ago
Nitin ce50c2cfd6 removed resetBits. setting transaction isolation level like readonly &
autocommit.
9 years ago
Nitin c8cd7ab1bb swap test condition 9 years ago
Nitin 9a63ebf876 replaced getParameterTypes().length with getParameterCount() 9 years ago
Mikhail Mazurskiy 743dc09d9a Slightly improve generics 9 years ago
Mikhail Mazurskiy a30dcd87b8 Cache volatile reads in local variables
Avoid unnecessary read memory barriers
9 years ago
Mikhail Mazurskiy c3dcb08023 Preserve tread interrupted status 9 years ago
Nitin aa90bd62e0 close statement before commit/rollback 9 years ago
Nitin 6769539f10 close ds 9 years ago
Nitin 23b4909155 sizing queue for connection closing proportionally 9 years ago
Nitin c362e8bb35 fixed test 9 years ago
Nitin 9daa51313f I've added context.close() before but not sure anymore! see 542 9 years ago
Nitin 87757fcd0a keeping connectionBag.remove and totalConnections.decrementAndGet()
close by
9 years ago
Nitin 5f851a4cfb reverted. using cachedExecutor for setting network timeout as before 9 years ago
Nitin c9ad521660 cleanup + rearrange statements 9 years ago
Nitin 2f3a1079ed merged DefaultThreadFactory with UtilityElf 9 years ago
Nitin cf1b7738c0 unused import 9 years ago
Nitin a56f5dcb2d removed ThreadPoolExecutor for use with setNetworkTimeout 9 years ago
Brett Wooldridge 1a64ab2357 This change in incorrect. Even the pure JDBC4 isValid() check can execute a query, and it is known that some drivers do so. 9 years ago
Brett Wooldridge 77e5972005 Fix for Java 7. 9 years ago
Brett Wooldridge a270577dc3 Merge branch 'dev1' of https://github.com/nitincchauhan/HikariCP into dev 9 years ago
Nitin 5c39c0a462 cache and refresh 'volatile' validationTimeout too 9 years ago
Nitin c7652d6ef9 optimize isConnectionAlive() replaced getAndSetNetworkTimeout with
setNetworkTimeout
9 years ago
Nitin 6124110d86 revert to setting network time out in try. in case it throws 9 years ago
Nitin fd02583e47 minor tweaks 9 years ago
Nitin 787bd979eb better property logging 9 years ago
Nitin 211e8e5d50 special treatment for password 9 years ago
Nitin d3d5dd6414 null check with instanceof is redundant 9 years ago
Nitin 9bb262cb23 reverted nullifying 9 years ago
Nitin 705c9e7db5 nullify in condition 9 years ago
Nitin ce4ff9255b fixed NPE in tests 9 years ago
Nitin 3d2a082da8 do NOT recycle connection that is evicted in checkException() 9 years ago
Nitin 5321da3f50 better closure reason 9 years ago
Nitin 9168b83377 false warning, removed. 9 years ago
Nitin 60e272614e re-setting isIsolateInternalQueries if not required 9 years ago
Nitin 2bd02091b4 reverted: setting lastConnectionFailure to null 9 years ago
Brett Wooldridge 48a8afd141 Fixes #495 implement iterator for Tomcat leak detection. 9 years ago
Nitin 926167598a Fixed Test 9 years ago
Nitin 1e24d50f97 make sure pool is ready before reseting counter 9 years ago
Nitin 4ec2e80c1e reset StubConnection.count after pool initialization 9 years ago
Nitin b88b314adc fixed tests :) 9 years ago
Nitin 18c0e2d6b0 assertion with text 9 years ago
Nitin af93c99019 set Sleepbackoff time to maximum 10 seconds 9 years ago
Nitin cd24a1e024 fixed errors 9 years ago
Nitin 60b58ad63d minor cleanup in tests 9 years ago
Nitin 95b237a07f more debug 9 years ago
Nitin 625b9d77dd added poolname to debug 9 years ago
Nitin fc09055538 minor cleanup 9 years ago
Nitin 8277a55c58 fixed test 9 years ago
Nitin 5ff7a72127 fixed tests 9 years ago
Nitin cb16120753 fixed test failures 9 years ago
Nitin b60f166681 minor cleanup 9 years ago
Nitin 8908411e41 for initializationFailFast, fail asap, not wait till connectionTimeout 9 years ago
Nitin 5a2d40879e keep lastConnectionFailure till getAndSet 9 years ago
Nitin 4b2e1d9ea5 removed explicit use of iterator 9 years ago
Nitin 54cd9d9685 sleep intelligence :) 9 years ago
Nitin ccfb1dbe8b warn and reset too 9 years ago
Nitin c731ff88b5 log property value as is. 'null' too 9 years ago
Nitin a9f7e65b0a sleep min 250 ms - max 7 sec 9 years ago
Nitin bc450c6c25 warn for timeouts in config 9 years ago
Nitin a265641ea7 warn for wrong timeouts in config:
http://stackoverflow.com/questions/33887002
9 years ago
Nitin 6eb0d93985 sleep for 200ms for minimum 1s, 6s for default 30s connectionTimeout. 9 years ago
Nitin 8eaaa7fdcd sleep reasonably, fix possible negative lifetime 9 years ago
Nitin cfd5e4d054 removed log 9 years ago
Nitin 541322a579 added warning too 9 years ago
Nitin 74c6f6e2b5 fix test 9 years ago
Nitin 7cbdb602a2 check and throw exceptions as before 9 years ago
Nitin 2980c99bd6 fix tests 9 years ago
Nitin 7027f23ead clear/simplified validation in sync with initializeDataSource() and
DriverDataSource()
9 years ago
Nitin fdce10f7db better method name 9 years ago
Nitin 1ab30a85a4 debug ShutdownTest 9 years ago
Nitin 9ae1a01aa5 set empty property as null in config 9 years ago
Nitin 4cef6b8585 check empty after trim 9 years ago
Nitin 2320bef366 treat empty property as null 9 years ago
Nitin 1056a339a2 switched order of abort and eviction in loop 9 years ago
Nitin 4847a653f2 do not add cons if pool is not normal, avoid exceptions in shutdown 9 years ago
Nitin ce1545bb39 format 9 years ago
Nitin 53ce83380f better loop and var name 9 years ago
Nitin 2fc728db17 exit loop after reaching max iteration.
avoids creating queue of sleeping callables in case of network outage

finetuning

fine tune

better name and fix

avoid creating queue of sleeping callables in case of db or network
outage

restrict add requests to maximum pool size

 separated totalConnections and poolSize

checking poolSize inside loop

decrement not required

restrict add requests to maximum pool size

changed order of increment (as it was in createPoolEntry)
9 years ago
Brett Wooldridge 317a0c1534 Merge branch 'dev' of github.com-brettwooldridge:brettwooldridge/HikariCP 10 years ago
Nitin 7151cbebf1 elseif 10 years ago
Muruganantham Mani 6ee7562b0b 2.5% random variance of the maxlifetime or 10seconds whichever is greater with random interval change 10 years ago
Nitin 51a43780bd if idleTimeout > maxLifetime, no need to set maxLifetime too 10 years ago
Nitin bc619c3032 Issue#483 10 years ago
Nitin bcd5c230e2 if minimumIdle > maxPoolSize, no need to set maxPoolSize too 10 years ago
Muruganantham Mani 912c9870d8 2.5% random variance of the maxlifetime or 10seconds whichever is greater 10 years ago
Muruganantham K Mani a2271969d6 Division by 20 is equal to 5% of the maxLifetime 10 years ago
Muruganantham Mani 0b99b0655c Adding random 10 second for every hour in the maxlifetime. This would help manage the closing of connection in a span of seconds instead of all at once. issue #256 10 years ago
Brett Wooldridge 6320faf414 Fix test logging output. 10 years ago
Brett Wooldridge 37b96f1ed9 Fixes #465 fix apparent leak of one connection leak at startup when minimumIdle=0 ... the connection is not leaked, but the ProxyLeakTask was not cancelled. 10 years ago
Nitin 01d30f36ed unit test fails for static 10 years ago
Nitin e4510974a8 cleanup 10 years ago
Nitin 792374ecba commit initSql if isIsolateInternalQueries is also true 10 years ago
Nitin 81a784fb68 static import 10 years ago
Nitin 5ac346be79 removed check (claimed != null) from hotpath 10 years ago