[18/50] [abbrv] hadoop git commit: HDFS-7058. Tests for truncate CLI. Contributed by Dasha Boudnik.

2015-02-11 Thread zjshen
HDFS-7058. Tests for truncate CLI. Contributed by Dasha Boudnik.

Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b73956fd
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b73956fd
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b73956fd

Branch: refs/heads/YARN-2928
Commit: b73956fdad87e03e9875a96465579a1a3b17c498
Parents: 3d15728
Author: Konstantin V Shvachko s...@apache.org
Authored: Mon Feb 9 21:26:59 2015 -0800
Committer: Konstantin V Shvachko s...@apache.org
Committed: Mon Feb 9 21:26:59 2015 -0800

--
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt |  2 ++
 .../src/test/resources/testHDFSConf.xml | 36 
 2 files changed, 38 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b73956fd/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
--
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt 
b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 1ca2263..59d498d 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -606,6 +606,8 @@ Release 2.7.0 - UNRELEASED
 HDFS-7743. Code cleanup of BlockInfo and rename BlockInfo to
 BlockInfoContiguous. (jing9)
 
+HDFS-7058. Tests for truncate CLI. (Dasha Boudnik via shv)
+
   OPTIMIZATIONS
 
 HDFS-7454. Reduce memory footprint for AclEntries in NameNode.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/b73956fd/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
index 8b221d6..05546a2 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
@@ -17266,5 +17266,41 @@ $/expected-output
 /comparator
   /comparators
 /test
+test !-- TESTED --
+  descriptiontruncate to 5 bytes after waiting for block recovery to 
complete/description
+  test-commands
+command-fs NAMENODE -mkdir -p /user/USERNAME/dir0/command
+command-fs NAMENODE -put CLITEST_DATA/data120bytes 
/user/USERNAME/dir0/command
+command-fs NAMENODE -truncate -w 5 
/user/USERNAME/dir0/data120bytes/command
+command-fs NAMENODE -cat /user/USERNAME/dir0/data120bytes/command
+  /test-commands
+  cleanup-commands
+command-fs NAMENODE -rm -r /user/USERNAME/dir0/command
+  /cleanup-commands
+  comparators
+comparator
+  typeRegexpComparator/type
+  expected-output12345/expected-output
+/comparator
+  /comparators
+/test
+test !-- TESTED --
+  descriptiontruncate to greater length than length of file/description
+  test-commands
+command-fs NAMENODE -mkdir /user/USERNAME/dir0/command
+command-fs NAMENODE -put CLITEST_DATA/data15bytes 
/user/USERNAME/dir0/command
+command-fs NAMENODE -truncate -w 50 
/user/USERNAME/dir0/data15bytes/command
+command-fs NAMENODE -cat /user/USERNAME/dir0/data15bytes/command
+  /test-commands
+  cleanup-commands
+command-fs NAMENODE -rm -r /user/USERNAME/dir0/command
+  /cleanup-commands
+  comparators
+comparator
+  typeRegexpComparator/type
+  expected-output12345678901234/expected-output
+/comparator
+  /comparators
+/test
   /tests
 /configuration



hadoop git commit: HDFS-7058. Tests for truncate CLI. Contributed by Dasha Boudnik.

2015-02-09 Thread shv
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 a1bf7aecf - 2b722b904


HDFS-7058. Tests for truncate CLI. Contributed by Dasha Boudnik.

Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2b722b90
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2b722b90
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2b722b90

Branch: refs/heads/branch-2
Commit: 2b722b904e49ab47ea9aaac5063ac2dfc6e42910
Parents: a1bf7ae
Author: Konstantin V Shvachko s...@apache.org
Authored: Mon Feb 9 21:31:02 2015 -0800
Committer: Konstantin V Shvachko s...@apache.org
Committed: Mon Feb 9 21:31:02 2015 -0800

--
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt |  2 ++
 .../src/test/resources/testHDFSConf.xml | 36 
 2 files changed, 38 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/2b722b90/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
--
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt 
b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 6d2715c..629b018 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -310,6 +310,8 @@ Release 2.7.0 - UNRELEASED
 HDFS-7743. Code cleanup of BlockInfo and rename BlockInfo to
 BlockInfoContiguous. (jing9)
 
+HDFS-7058. Tests for truncate CLI. (Dasha Boudnik via shv)
+
   OPTIMIZATIONS
 
 HDFS-7454. Reduce memory footprint for AclEntries in NameNode.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/2b722b90/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
index aef15da..93bbeb2 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
@@ -17064,5 +17064,41 @@ $/expected-output
 /comparator
   /comparators
 /test
+test !-- TESTED --
+  descriptiontruncate to 5 bytes after waiting for block recovery to 
complete/description
+  test-commands
+command-fs NAMENODE -mkdir -p /user/USERNAME/dir0/command
+command-fs NAMENODE -put CLITEST_DATA/data120bytes 
/user/USERNAME/dir0/command
+command-fs NAMENODE -truncate -w 5 
/user/USERNAME/dir0/data120bytes/command
+command-fs NAMENODE -cat /user/USERNAME/dir0/data120bytes/command
+  /test-commands
+  cleanup-commands
+command-fs NAMENODE -rm -r /user/USERNAME/dir0/command
+  /cleanup-commands
+  comparators
+comparator
+  typeRegexpComparator/type
+  expected-output12345/expected-output
+/comparator
+  /comparators
+/test
+test !-- TESTED --
+  descriptiontruncate to greater length than length of file/description
+  test-commands
+command-fs NAMENODE -mkdir /user/USERNAME/dir0/command
+command-fs NAMENODE -put CLITEST_DATA/data15bytes 
/user/USERNAME/dir0/command
+command-fs NAMENODE -truncate -w 50 
/user/USERNAME/dir0/data15bytes/command
+command-fs NAMENODE -cat /user/USERNAME/dir0/data15bytes/command
+  /test-commands
+  cleanup-commands
+command-fs NAMENODE -rm -r /user/USERNAME/dir0/command
+  /cleanup-commands
+  comparators
+comparator
+  typeRegexpComparator/type
+  expected-output12345678901234/expected-output
+/comparator
+  /comparators
+/test
   /tests
 /configuration



hadoop git commit: HDFS-7058. Tests for truncate CLI. Contributed by Dasha Boudnik.

2015-02-09 Thread shv
Repository: hadoop
Updated Branches:
  refs/heads/trunk 3d15728ff - b73956fda


HDFS-7058. Tests for truncate CLI. Contributed by Dasha Boudnik.

Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b73956fd
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b73956fd
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b73956fd

Branch: refs/heads/trunk
Commit: b73956fdad87e03e9875a96465579a1a3b17c498
Parents: 3d15728
Author: Konstantin V Shvachko s...@apache.org
Authored: Mon Feb 9 21:26:59 2015 -0800
Committer: Konstantin V Shvachko s...@apache.org
Committed: Mon Feb 9 21:26:59 2015 -0800

--
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt |  2 ++
 .../src/test/resources/testHDFSConf.xml | 36 
 2 files changed, 38 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b73956fd/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
--
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt 
b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 1ca2263..59d498d 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -606,6 +606,8 @@ Release 2.7.0 - UNRELEASED
 HDFS-7743. Code cleanup of BlockInfo and rename BlockInfo to
 BlockInfoContiguous. (jing9)
 
+HDFS-7058. Tests for truncate CLI. (Dasha Boudnik via shv)
+
   OPTIMIZATIONS
 
 HDFS-7454. Reduce memory footprint for AclEntries in NameNode.

http://git-wip-us.apache.org/repos/asf/hadoop/blob/b73956fd/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
--
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml 
b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
index 8b221d6..05546a2 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/resources/testHDFSConf.xml
@@ -17266,5 +17266,41 @@ $/expected-output
 /comparator
   /comparators
 /test
+test !-- TESTED --
+  descriptiontruncate to 5 bytes after waiting for block recovery to 
complete/description
+  test-commands
+command-fs NAMENODE -mkdir -p /user/USERNAME/dir0/command
+command-fs NAMENODE -put CLITEST_DATA/data120bytes 
/user/USERNAME/dir0/command
+command-fs NAMENODE -truncate -w 5 
/user/USERNAME/dir0/data120bytes/command
+command-fs NAMENODE -cat /user/USERNAME/dir0/data120bytes/command
+  /test-commands
+  cleanup-commands
+command-fs NAMENODE -rm -r /user/USERNAME/dir0/command
+  /cleanup-commands
+  comparators
+comparator
+  typeRegexpComparator/type
+  expected-output12345/expected-output
+/comparator
+  /comparators
+/test
+test !-- TESTED --
+  descriptiontruncate to greater length than length of file/description
+  test-commands
+command-fs NAMENODE -mkdir /user/USERNAME/dir0/command
+command-fs NAMENODE -put CLITEST_DATA/data15bytes 
/user/USERNAME/dir0/command
+command-fs NAMENODE -truncate -w 50 
/user/USERNAME/dir0/data15bytes/command
+command-fs NAMENODE -cat /user/USERNAME/dir0/data15bytes/command
+  /test-commands
+  cleanup-commands
+command-fs NAMENODE -rm -r /user/USERNAME/dir0/command
+  /cleanup-commands
+  comparators
+comparator
+  typeRegexpComparator/type
+  expected-output12345678901234/expected-output
+/comparator
+  /comparators
+/test
   /tests
 /configuration