traverse(EQ, false, 0) returns incorrect result

Bug #1023549 reported by Peter Beaman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Akiban Persistit
Fix Released
Medium
Peter Beaman

Bug Description

This method returns true even when the tree is empty. traverse(EQ, true, 0) returns the correct value.

Related branches

Peter Beaman (pbeaman)
Changed in akiban-persistit:
milestone: none → 3.1.8
assignee: nobody → Peter Beaman (pbeaman)
Revision history for this message
Peter Beaman (pbeaman) wrote :

Bug is incorrect: traverse(EQ, false, 0) appears to return the correct result. Added unit test for a number of variations of EQ, LTEQ, GTEQ, LT and GT.

Changed in akiban-persistit:
status: New → Invalid
Revision history for this message
Peter Beaman (pbeaman) wrote :

Bug statement was incomplete and the test cases didn't cover. The following fails:

ex.removeAll();
ex.clear().append(1);
assertFalse(ex.traverse(Key.EQ, false, -1))

The traverse method incorrectly returns true.

Changed in akiban-persistit:
status: Invalid → Confirmed
Peter Beaman (pbeaman)
Changed in akiban-persistit:
status: Confirmed → In Progress
Peter Beaman (pbeaman)
visibility: private → public
Changed in akiban-persistit:
status: In Progress → Fix Committed
Changed in akiban-persistit:
milestone: 3.2.0 → 3.2.1
Changed in akiban-persistit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.