Merge lp:~pbeaman/akiban-persistit/fix-1076517-page-in-use2 into lp:akiban-persistit
Proposed by
Peter Beaman
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Nathan Williams | ||||
Approved revision: | 402 | ||||
Merged at revision: | 401 | ||||
Proposed branch: | lp:~pbeaman/akiban-persistit/fix-1076517-page-in-use2 | ||||
Merge into: | lp:akiban-persistit | ||||
Prerequisite: | lp:~pbeaman/akiban-persistit/fix-rebalance-exception2 | ||||
Diff against target: |
118 lines (+17/-11) 3 files modified
src/main/java/com/persistit/Exchange.java (+9/-2) src/main/java/com/persistit/VolumeStructure.java (+3/-4) src/test/java/com/persistit/stress/unit/AccumulatorRestart.java (+5/-5) |
||||
To merge this branch: | bzr merge lp:~pbeaman/akiban-persistit/fix-1076517-page-in-use2 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nathan Williams | Approve | ||
Review via email: mp+136771@code.launchpad.net |
Description of the change
Contains fixes for two observed deadlock scenarios described in https:/
1. Avoid calling deallocChain in the quick delete branch because a possible race which is otherwise harmless can lead to a deadlock.
2. In the event of a WWRetryException, the non-exclusive claim on the Tree is released as well as the claim on the buffer.
With these changes stress tests ran successfully 8 x 8 hours.
As mentioned in another merge proposal, the code to avoid a hypothetical livelock has been dropped for now until there is evidence of this actually occurring.
To post a comment you must log in.
Simple enough.