Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HADOOP-17181. Handle transient stream read failures in FileSystem con…
…tract tests (#2286) Contributed by Steve Loughran. * Fixes AbstractContractSeekTest test to use readFully * Doesn't do this to AbstractContractUnbufferTest test as it changes the test too much. Instead just notes in the error that this may be transient The issue is that read(buffer) doesn't guarantee that the buffer is filled, only that it will read up to a point, and that may be just be the amount of data left in the TCP packet. readFully corrects for this, but using it in the unbuffer test runs the risk that what is tested for in terms of unbuffering doesn't actually get validated.
- Loading branch information