HDFS-13353. RBF: TestRouterWebHDFSContractCreate failed. Contributed by Takanobu Asanuma.

(cherry picked from commit 3121e8c293)
This commit is contained in:
Wei Yan 2018-04-05 12:00:52 -07:00
parent 9cb378f5c7
commit 9638c3fe67
2 changed files with 11 additions and 6 deletions

View File

@ -244,12 +244,12 @@ public abstract class AbstractContractCreateTest extends
out.write('a'); out.write('a');
out.flush(); out.flush();
if (!fs.exists(path)) { if (!fs.exists(path)) {
if (isSupported(IS_BLOBSTORE) ||
if (isSupported(IS_BLOBSTORE)) { isSupported(CREATE_VISIBILITY_DELAYED)) {
// object store: downgrade to a skip so that the failure is visible // object store or some file systems: downgrade to a skip so that the
// in test results // failure is visible in test results
skip("Filesystem is an object store and newly created files are not " skip("For object store or some file systems, newly created files are"
+ "immediately visible"); + " not immediately visible");
} }
assertPathExists("expected path to be visible before file closed", assertPathExists("expected path to be visible before file closed",
path); path);

View File

@ -23,4 +23,9 @@
<value>false</value> <value>false</value>
</property> </property>
<property>
<name>fs.contract.create-visibility-delayed</name>
<value>true</value>
</property>
</configuration> </configuration>