improve FileWriteOutBytes.readFully (#12323)
authorClint Wylie <cwylie@apache.org>
Wed, 9 Mar 2022 19:45:45 +0000 (11:45 -0800)
committerGitHub <noreply@github.com>
Wed, 9 Mar 2022 19:45:45 +0000 (11:45 -0800)
commitdc0372a28e3b22d7e35047ab60925fa1734d7d16
treed6a8dd3890a8a02bd3ded44d3192424bc799119b
parent7bf1d8c5c0adda27b94000f29113ad8915a23a4a
improve FileWriteOutBytes.readFully (#12323)

* improve FileWriteOutBytes.readFully

* no need to flush if out of bounds
processing/src/main/java/org/apache/druid/segment/writeout/FileWriteOutBytes.java
processing/src/test/java/org/apache/druid/segment/writeout/FileWriteOutBytesTest.java