Skip to content

Commit

Permalink
ESQL: Improve block closing in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
costin committed Sep 27, 2023
1 parent 7fdba1a commit 4475fdd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ public void testProjection() {
for (int i = 0; i < out.getBlockCount(); i++) {
var block = out.<IntBlock>getBlock(i);
assertEquals(block, page.getBlock(randomProjection.get(i)));
block.close();
}
// close all blocks separately since the same block can be used by multiple columns (aliased)
out.releaseBlocks();
}

private List<Integer> randomProjection(int size) {
Expand Down

0 comments on commit 4475fdd

Please sign in to comment.