Mismatched buffer pool sizes and volume page size results in NPE
Bug #1041293 reported by
John M Bradley
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 NullPointerExce
This seems to be caused by the following code called from the VolumeStructure in Persistit:
/**
* @param size
* the desired buffer size
* @return the <code>BufferPoo
*/
BufferPool getBufferPool(int size) {
return _bufferPoolTabl
}
Something a little more helpful should probably be done.
Related branches
lp:~pbeaman/akiban-persistit/fix-1041293-mismatch-buffer-size-npe
- Nathan Williams: Approve
-
Diff: 98 lines (+56/-2)3 files modifiedsrc/main/java/com/persistit/Volume.java (+7/-0)
src/main/java/com/persistit/VolumeSpecification.java (+2/-2)
src/test/java/com/persistit/Bug1041293Test.java (+47/-0)
Changed in akiban-persistit: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
visibility: | private → public |
Changed in akiban-persistit: | |
milestone: | none → 3.1.7 |
assignee: | nobody → Peter Beaman (pbeaman) |
Changed in akiban-persistit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thank you for the bug report.