Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Fixing bug where large index files weren't being read fully (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shchetkov authored Aug 11, 2021
1 parent f94fda8 commit c2f4f04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ object FileUtils {
val fileInputStream = fileSystem.open(path)
val len = fileSystem.getFileStatus(path).getLen
val bytes = new Array[Byte](len.toInt)
fileInputStream.read(bytes)
fileInputStream.readFully(bytes)
fileInputStream.close()
bytes
}
Expand Down

0 comments on commit c2f4f04

Please sign in to comment.