Close iter when reset to avoid resource not closed issue (#9035)
Signed-off-by: CH Kang <ch1010.developer@gmail.com>
This commit is contained in:
		
							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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user