Close iter when reset to avoid resource not closed issue (#9035)
Signed-off-by: CH Kang <ch1010.developer@gmail.com>master
parent
f33b08e20f
commit
5ff8d28b89
|
@ -173,6 +173,7 @@ public class LineRecordReader extends BaseRecordReader {
|
|||
throw new UnsupportedOperationException("Cannot reset without first initializing");
|
||||
try {
|
||||
inputSplit.reset();
|
||||
close();
|
||||
initialize(inputSplit);
|
||||
splitIndex = 0;
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue