Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Aug 1, 2024
1 parent a38d6ce commit cc33525
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.apache.paimon.reader;

import org.apache.paimon.utils.CloseableIterator;
import org.apache.paimon.utils.IOUtils;

import java.io.IOException;

Expand All @@ -34,7 +35,8 @@ public RecordReaderIterator(RecordReader<T> reader) {
this.reader = reader;
try {
this.currentIterator = reader.readBatch();
} catch (IOException e) {
} catch (Exception e) {
IOUtils.closeQuietly(reader);
throw new RuntimeException(e);
}
this.advanced = false;
Expand Down

0 comments on commit cc33525

Please sign in to comment.