Merge lp:~pbeaman/akiban-persistit/fix-1174352-commit-thread into lp:akiban-persistit
Proposed by
Peter Beaman
Status: | Merged |
---|---|
Approved by: | Nathan Williams |
Approved revision: | 435 |
Merged at revision: | 431 |
Proposed branch: | lp:~pbeaman/akiban-persistit/fix-1174352-commit-thread |
Merge into: | lp:akiban-persistit |
Prerequisite: | lp:~pbeaman/akiban-persistit/apache-license |
Diff against target: |
313 lines (+151/-53) 5 files modified
src/main/java/com/persistit/Transaction.java (+0/-1) src/main/java/com/persistit/TransactionIndexBucket.java (+2/-5) src/main/java/com/persistit/TransactionStatus.java (+26/-46) src/test/java/com/persistit/TransactionSessionSwitchTest.java (+122/-0) src/test/java/com/persistit/stress/unit/AccumulatorRestart.java (+1/-1) |
To merge this branch: | bzr merge lp:~pbeaman/akiban-persistit/fix-1174352-commit-thread |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nathan Williams | Approve | ||
Review via email: mp+161824@code.launchpad.net |
Description of the change
Use Semaphore instead of ReentrantLock in TransactionStat
This is important to support the documented behavior allowing SessionId management, and that is important to allow a fixed number of threads in a thread pool to handled a potentially much larger number of sessions.
To post a comment you must log in.
Semaphore has availablePermits() which we could use for the removed assert and short sleep, if desired.
This is fine by me as-is, too.