HADOOP-14390. Correct spelling of 'succeed' and variants. Contributed by Dongtao Zhang
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e4f34ecb Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e4f34ecb Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e4f34ecb Branch: refs/heads/HDFS-7240 Commit: e4f34ecb049a252fb1084c4c7f404d710b221969 Parents: a3954cc Author: Chris Douglas <[email protected]> Authored: Fri May 5 12:10:50 2017 -0700 Committer: Chris Douglas <[email protected]> Committed: Fri May 5 12:10:50 2017 -0700 ---------------------------------------------------------------------- .../org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java | 6 +++--- .../test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java | 2 +- .../org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java | 4 ++-- .../src/test/java/org/apache/hadoop/hdfs/NNBenchWithoutMR.java | 6 +++--- .../reservation/planning/TestAlignedPlanner.java | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4f34ecb/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java index 61295b4..68a7560 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java @@ -251,7 +251,7 @@ abstract public class ViewFileSystemBaseTest { fsTarget.isFile(new Path(targetTestRoot,"user/foo"))); // Delete the created file - Assert.assertTrue("Delete should suceed", + Assert.assertTrue("Delete should succeed", fsView.delete(new Path("/user/foo"), false)); Assert.assertFalse("File should not exist after delete", fsView.exists(new Path("/user/foo"))); @@ -266,7 +266,7 @@ abstract public class ViewFileSystemBaseTest { fsTarget.isFile(new Path(targetTestRoot,"dir2/foo"))); // Delete the created file - Assert.assertTrue("Delete should suceed", + Assert.assertTrue("Delete should succeed", fsView.delete(new Path("/internalDir/linkToDir2/foo"), false)); Assert.assertFalse("File should not exist after delete", fsView.exists(new Path("/internalDir/linkToDir2/foo"))); @@ -370,7 +370,7 @@ abstract public class ViewFileSystemBaseTest { public void testRenameAcrossMounts1() throws IOException { fileSystemTestHelper.createFile(fsView, "/user/foo"); fsView.rename(new Path("/user/foo"), new Path("/user2/fooBarBar")); - /* - code if we had wanted this to suceed + /* - code if we had wanted this to succeed Assert.assertFalse(fSys.exists(new Path("/user/foo"))); Assert.assertFalse(fSysLocal.exists(new Path(targetTestRoot,"user/foo"))); Assert.assertTrue(fSys.isFile(FileSystemTestHelper.getTestRootPath(fSys,"/user2/fooBarBar"))); http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4f34ecb/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java index 50237d1..fdc6389 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java @@ -232,7 +232,7 @@ abstract public class ViewFsBaseTest { isFile(fcTarget, new Path(targetTestRoot,"dir2/foo"))); // Delete the created file - Assert.assertTrue("Delete should suceed", + Assert.assertTrue("Delete should succeed", fcView.delete(new Path("/internalDir/linkToDir2/foo"),false)); Assert.assertFalse("File should not exist after deletion", exists(fcView, new Path("/internalDir/linkToDir2/foo"))); http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4f34ecb/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java index e643d21..8b48225 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java @@ -509,8 +509,8 @@ public class TestCheckpoint { Mockito.reset(faultInjector); secondary.shutdown(); // secondary namenode crash! - // start new instance of secondary and verify that - // a new rollEditLog suceedes inspite of the fact that + // start new instance of secondary and verify that + // a new rollEditLog succeeds inspite of the fact that // edits.new already exists. // secondary = startSecondaryNameNode(conf); http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4f34ecb/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBenchWithoutMR.java ---------------------------------------------------------------------- diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBenchWithoutMR.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBenchWithoutMR.java index 8cd6f36..9b63010 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBenchWithoutMR.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/hdfs/NNBenchWithoutMR.java @@ -93,7 +93,7 @@ public class NNBenchWithoutMR { /** * Create and write to a given number of files. Repeat each remote - * operation until is suceeds (does not throw an exception). + * operation until is succeeds (does not throw an exception). * * @return the number of exceptions caught */ @@ -178,7 +178,7 @@ public class NNBenchWithoutMR { /** * Rename a given number of files. Repeat each remote - * operation until is suceeds (does not throw an exception). + * operation until is succeeds (does not throw an exception). * * @return the number of exceptions caught */ @@ -208,7 +208,7 @@ public class NNBenchWithoutMR { /** * Delete a given number of files. Repeat each remote - * operation until is suceeds (does not throw an exception). + * operation until is succeeds (does not throw an exception). * * @return the number of exceptions caught */ http://git-wip-us.apache.org/repos/asf/hadoop/blob/e4f34ecb/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/planning/TestAlignedPlanner.java ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/planning/TestAlignedPlanner.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/planning/TestAlignedPlanner.java index fd187fc..25ec9c9 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/planning/TestAlignedPlanner.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/reservation/planning/TestAlignedPlanner.java @@ -866,7 +866,7 @@ public class TestAlignedPlanner { curAlloc.clear(); curAlloc.put(new ReservationInterval(9 * step, 10 * step), Resource.newInstance(1024, 1)); - assertTrue("validateOrderNoFap() should have suceeded", + assertTrue("validateOrderNoFap() should have succeeded", IterativePlanner.validateOrderNoGap(allocation, curAlloc, false)); // 2. allocateLeft = false, fail when curAlloc has a gap @@ -888,7 +888,7 @@ public class TestAlignedPlanner { curAlloc.clear(); curAlloc.put(new ReservationInterval(13 * step, 14 * step), Resource.newInstance(1024, 1)); - assertTrue("validateOrderNoFap() should have suceeded", + assertTrue("validateOrderNoFap() should have succeeded", IterativePlanner.validateOrderNoGap(allocation, curAlloc, true)); // 5. allocateLeft = true, fail when there is a gap between curAlloc and --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
