Mismatched buffer pool sizes and volume page size results in NPE

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

Bug Description

If a VolumeSpecification specifies a page size that doesn't correspond to any of the available buffer pool sizes, a NullPointerException is thrown when the volume is being loaded (created) .

This seems to be caused by the following code called from the VolumeStructure in Persistit:

    /**
     * @param size
     * the desired buffer size
     * @return the <code>BufferPool</code> for the specific buffer size
     */
    BufferPool getBufferPool(int size) {
        return _bufferPoolTable.get(new Integer(size));
    }

Something a little more helpful should probably be done.

Related branches

Changed in akiban-persistit:
status: New → Confirmed
importance: Undecided → Medium
visibility: private → public
Revision history for this message
Peter Beaman (pbeaman) wrote :

Thank you for the bug report.

Changed in akiban-persistit:
status: Confirmed → Fix Committed
Changed in akiban-persistit:
milestone: none → 3.1.7
assignee: nobody → Peter Beaman (pbeaman)
Peter Beaman (pbeaman)
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.