hadoop/hadoop-common-project
Steve Loughran 2029556dbb
HADOOP-17181. Handle transient stream read failures in FileSystem contract 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.
2020-09-09 11:58:26 +01:00
..
hadoop-annotations Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-auth Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-auth-examples Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-common HADOOP-17181. Handle transient stream read failures in FileSystem contract tests (#2286) 2020-09-09 11:58:26 +01:00
hadoop-kms HADOOP-17204. Fix typo in Hadoop KMS document. Contributed by Xieming Li. 2020-08-12 16:08:36 +09:00
hadoop-minikdc Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-nfs Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
hadoop-registry Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30
pom.xml Preparing for 3.4.0 development 2020-03-29 23:24:25 +05:30