HADOOP-13798. TestHadoopArchives times out.
This commit is contained in:
parent
ca33bdd5c6
commit
b970446b2c
@ -444,7 +444,7 @@ public class TestHadoopArchives {
|
|||||||
int read;
|
int read;
|
||||||
while (true) {
|
while (true) {
|
||||||
read = fsdis.read(buffer, readIntoBuffer, buffer.length - readIntoBuffer);
|
read = fsdis.read(buffer, readIntoBuffer, buffer.length - readIntoBuffer);
|
||||||
if (read < 0) {
|
if (read <= 0) {
|
||||||
// end of stream:
|
// end of stream:
|
||||||
if (readIntoBuffer > 0) {
|
if (readIntoBuffer > 0) {
|
||||||
baos.write(buffer, 0, readIntoBuffer);
|
baos.write(buffer, 0, readIntoBuffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user