Skip to content

Commit

Permalink
log file when OOM appears
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Oct 18, 2024
1 parent 3c88f87 commit 7e8a1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/kelondro/blob/HeapReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public Map.Entry<byte[], byte[]> next0() {
// the allocation of memory for the payload may fail
// this is bad because we must interrupt the iteration here but the
// process that uses the iteration may think that the iteraton has just been completed
log.severe("out of memory in LookAheadIterator.next0", ee);
log.severe("out of memory in LookAheadIterator.next0 for file " + this.blobFile.toString(), ee);
try {this.is.close();} catch (final IOException e) {}
return null;
}
Expand Down

0 comments on commit 7e8a1ef

Please sign in to comment.