From a6af0248e9ec75e8e46ac96593070e0c9841a660 Mon Sep 17 00:00:00 2001 From: Uma Maheswara Rao G Date: Mon, 18 May 2015 19:35:53 +0530 Subject: [PATCH] HDFS-8412. Fix the test failures in HTTPFS: In some tests setReplication called after fs close. Contributed by Uma Maheswara Rao G. --- .../org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java | 2 +- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java index 2cc67d417c..0e082cca03 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java @@ -465,8 +465,8 @@ private void testSetReplication() throws Exception { OutputStream os = fs.create(path); os.write(1); os.close(); - fs.close(); fs.setReplication(path, (short) 2); + fs.close(); fs = getHttpFSFileSystem(); fs.setReplication(path, (short) 1); diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 3e0d360664..8d0c5b6f10 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -332,6 +332,8 @@ Trunk (Unreleased) HDFS-8332. DFS client API calls should check filesystem closed (Rakesh R via umamahesh) + HDFS-8412. Fix the test failures in HTTPFS. (umamahesh) + Release 2.8.0 - UNRELEASED INCOMPATIBLE CHANGES