Merge lp:~pbeaman/akiban-persistit/fix-accumulator-restart-test into lp:akiban-persistit
Proposed by
Peter Beaman
Status: | Merged |
---|---|
Approved by: | Nathan Williams |
Approved revision: | 398 |
Merged at revision: | 399 |
Proposed branch: | lp:~pbeaman/akiban-persistit/fix-accumulator-restart-test |
Merge into: | lp:akiban-persistit |
Diff against target: |
12 lines (+1/-1) 1 file modified
src/test/java/com/persistit/stress/unit/AccumulatorRestart.java (+1/-1) |
To merge this branch: | bzr merge lp:~pbeaman/akiban-persistit/fix-accumulator-restart-test |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Akiban Build User | Needs Fixing | ||
Nathan Williams | Approve | ||
Review via email: mp+136433@code.launchpad.net |
Description of the change
Fix silly error in the stress test AccumulatorRestart. There is code that attempts to determine whether to trigger a new cycle based on temporal proximity to an actual or anticipated checkpoint. The trigger code uses a randomly generated integer timeOffset which falls between -500 and +500. In the special case where the randomly generated number is zero, the triggering condition never fires and the main cycle run in an infinite loop. Observed on persistit-
To post a comment you must log in.
As described.