Repository: bigtop Updated Branches: refs/heads/master d2fbfbaa7 -> 70fee1290
BIGTOP-1234. TestFileAppend shouldn't reuse client during testMultipleOutputStreamFailure() Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/70fee129 Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/70fee129 Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/70fee129 Branch: refs/heads/master Commit: 70fee1290633959e45e31bae136b5c95a82c67c4 Parents: d2fbfba Author: Virginia Wang <[email protected]> Authored: Fri Feb 28 14:59:33 2014 -0800 Committer: Konstantin Boudnik <[email protected]> Committed: Fri Feb 28 14:59:33 2014 -0800 ---------------------------------------------------------------------- .../apache/bigtop/itest/hadoop/hdfs/TestFileAppend.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/70fee129/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs/TestFileAppend.groovy ---------------------------------------------------------------------- diff --git a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs/TestFileAppend.groovy b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs/TestFileAppend.groovy index 235220a..f0b4436 100644 --- a/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs/TestFileAppend.groovy +++ b/bigtop-tests/test-artifacts/hadoop/src/main/groovy/org/apache/bigtop/itest/hadoop/hdfs/TestFileAppend.groovy @@ -17,8 +17,6 @@ */ package org.apache.bigtop.itest.hadoop.hdfs; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.AfterClass; import org.junit.BeforeClass; @@ -27,8 +25,6 @@ import org.apache.bigtop.itest.shell.Shell; import org.apache.hadoop.fs.*; import org.apache.hadoop.io.*; import org.apache.hadoop.conf.Configuration; -import java.util.regex.Matcher; -import java.util.regex.Pattern; public class TestFileAppend { @@ -204,7 +200,11 @@ public class TestFileAppend { @Test public void testMultipleOutputStreamFailure() { + // create 2 separate clients + conf.setBoolean("fs.hdfs.impl.disable.cache", true); FileSystem fs = FileSystem.get(conf); + FileSystem fs2 = FileSystem.get(conf); + conf.setBoolean("fs.hdfs.impl.disable.cache", false); // test file creation sh.exec("dd if=/dev/zero of=test3.file$date count=1 bs=1048576"); @@ -230,7 +230,7 @@ public class TestFileAppend { // attempting second output stream try { - FSDataOutputStream output2 = fs.append(outFile); + FSDataOutputStream output2 = fs2.append(outFile); assertTrue("Should not have been able to open second output stream", false); IOUtils.closeStream(output2); }
