Skip to content

Commit

Permalink
DRILL-8479: Merge Join Memory Leak Depleting Incoming Batches Throw E…
Browse files Browse the repository at this point in the history
…xception (#2878)
  • Loading branch information
shfshihuafeng authored and jnturton committed Apr 14, 2024
1 parent a0c255f commit 7ea9a1e
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,14 @@ public void close() {
batchMemoryManager.getAvgOutputRowWidth(), batchMemoryManager.getTotalOutputRecords());

super.close();
leftIterator.close();
try {
leftIterator.close();
} catch (Exception e) {
rightIterator.close();
throw UserException.executionError(e)
.message("Failed to close Iterator.")
.build(logger);
}
rightIterator.close();
}

Expand Down

0 comments on commit 7ea9a1e

Please sign in to comment.