hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From naganarasimha...@apache.org
Subject hadoop git commit: YARN-6463. Correct spelling mistake in FileSystemRMStateStore. Contributed by Yeliang Cang.
Date Tue, 11 Apr 2017 17:14:30 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk f050afb57 -> 7d873c465


YARN-6463. Correct spelling mistake in FileSystemRMStateStore. Contributed by Yeliang Cang.


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

Branch: refs/heads/trunk
Commit: 7d873c465b815816e9955cf40f4e141dd2e7d82b
Parents: f050afb
Author: Naganarasimha <naganarasimha_gr@apache.org>
Authored: Tue Apr 11 22:42:08 2017 +0530
Committer: Naganarasimha <naganarasimha_gr@apache.org>
Committed: Tue Apr 11 22:42:08 2017 +0530

----------------------------------------------------------------------
 .../resourcemanager/recovery/FileSystemRMStateStore.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/7d873c46/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/FileSystemRMStateStore.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/FileSystemRMStateStore.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/FileSystemRMStateStore.java
index 929e2da..9591945 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/FileSystemRMStateStore.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/FileSystemRMStateStore.java
@@ -785,7 +785,7 @@ public class FileSystemRMStateStore extends RMStateStore {
    * atomic for underlying file system.
    */
   protected void writeFile(Path outputPath, byte[] data, boolean
-          makeUnradableByAdmin) throws Exception {
+          makeUnreadableByAdmin) throws Exception {
     Path tempPath =
         new Path(outputPath.getParent(), outputPath.getName() + ".tmp");
     FSDataOutputStream fsOut = null;
@@ -793,7 +793,7 @@ public class FileSystemRMStateStore extends RMStateStore {
     // final status.
     try {
       fsOut = fs.create(tempPath, true);
-      if (makeUnradableByAdmin) {
+      if (makeUnreadableByAdmin) {
         setUnreadableBySuperuserXattrib(tempPath);
       }
       fsOut.write(data);
@@ -811,10 +811,10 @@ public class FileSystemRMStateStore extends RMStateStore {
    * atomic for underlying file system.
    */
   protected void updateFile(Path outputPath, byte[] data, boolean
-          makeUnradableByAdmin) throws Exception {
+          makeUnreadableByAdmin) throws Exception {
     Path newPath = new Path(outputPath.getParent(), outputPath.getName() + ".new");
     // use writeFileWithRetries to make sure .new file is created atomically
-    writeFileWithRetries(newPath, data, makeUnradableByAdmin);
+    writeFileWithRetries(newPath, data, makeUnreadableByAdmin);
     replaceFile(newPath, outputPath);
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message