Skip to content
Snippets Groups Projects
Commit dc24aecd authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Close record readers in HadoopFile after finishing a split

parent 62f1c6f5
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ extends RDD[(K, V)](sc) {
}
gotNext = true
}
if (finished) {
reader.close()
}
!finished
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment