hadoop/hadoop-common-project/hadoop-common/src/test
Steve Loughran d4d4c37810
HADOOP-14630 Contract Tests to verify create, mkdirs and rename under a file is forbidden
Contributed by Steve Loughran.

Not all stores do complete validation here; in particular the S3A
Connector does not: checking up the entire directory tree to see if a path matches
is a file significantly slows things down.

This check does take place in S3A mkdirs(), which walks backwards up the list of
parent paths until it finds a directory (success) or a file (failure).
In practice production applications invariably create destination directories
before writing 1+ file into them -restricting check purely to the mkdirs()
call deliver significant speed up while implicitly including the checks.

Change-Id: I2c9df748e92b5655232e7d888d896f1868806eb0
2020-03-09 14:44:28 +00:00
..
avro HADOOP-7920. Remove a few more bits that are no longer required. 2011-12-14 21:57:55 +00:00
java/org/apache/hadoop HADOOP-14630 Contract Tests to verify create, mkdirs and rename under a file is forbidden 2020-03-09 14:44:28 +00:00
proto HADOOP-16558. [COMMON+HDFS] use protobuf-maven-plugin to generate protobuf classes (#1494). Contributed by Vinayakumar B. 2019-09-23 12:37:47 +05:30
resources HDFS-14691. Wrong usage hint for hadoop fs command "test". 2019-08-05 13:08:47 +01:00
scripts HADOOP-15527. Improve delay check for stopping processes. 2018-06-19 13:38:13 -04:00
all-tests HADOOP-7560. Change src layout to be heirarchical. Contributed by Alejandro Abdelnur. 2011-08-25 00:14:24 +00:00
empty-file HADOOP-7560. Change src layout to be heirarchical. Contributed by Alejandro Abdelnur. 2011-08-25 00:14:24 +00:00