HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Clean up of KeyedResourcePool and significant hardening of the unit t…
…est. src/java/voldemort/utils/pool/KeyedResourcePool.java - Documented the invariants (or lack thereof) guaranteed by this class. - Documented this classes expectations of its users. - Moved attemptGrow into the inner Pool class. - Got rid of the attemptCheckoutGrowCheckout method. ;) src/java/voldemort/utils/pool/QueuedKeyedResourcePool.java - tweaked to match revised attemptGrow interface test/unit/voldemort/utils/pool/KeyedResourcePoolTest.java - Added a bunch of 'negative' tests. I.e., they demonstrate non-desirable behavior of current KeyedResourcePool. - Added a contention test that has many threads checkout, possibly invalidate, and then checkin resources for some key.
- Loading branch information...
Showing with 366 additions and 92 deletions.