Skip to content

Commit 19e147f

Browse files
committed
fix(reader): reset slab allocator between chunks
SlicingAllocator never resets, so decode allocations accumulated across all chunks until the 4 MB slab overflowed with IndexOutOfBoundsException. Reset by recreating the allocator from the same slab before each chunk decode.
1 parent 208c8a7 commit 19e147f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

reader/src/main/java/io/github/dfa1/vortex/scan/ScanIterator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public boolean hasNext() {
134134
continue;
135135
}
136136

137+
chunkAlloc = SegmentAllocator.slicingAllocator(chunkSlab);
137138
current = new ScanResult(chunk.rowCount(), buildColumnMap(chunk));
138139
rowsReturned += chunk.rowCount();
139140
return true;

0 commit comments

Comments
 (0)