Просмотр исходного кода

HDFS-3838. Fix the typo in FSEditLog.java: isToterationEnabled should be isTolerationEnabled. Contributed by Brandon Li.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1377098 13f79535-47bb-0310-9956-ffa450edef68
Jitendra Nath Pandey 13 лет назад
Родитель
Сommit
f7c7958f92
2 измененных файлов с 7 добавлено и 4 удалено
  1. 3 0
      CHANGES.txt
  2. 4 4
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java

+ 3 - 0
CHANGES.txt

@@ -90,6 +90,9 @@ Release 1.2.0 - unreleased
     HDFS-3819. Should check whether invalidate work percentage default value is 
     not greater than 1.0f. (Jing Zhao via jitendra)
 
+    HDFS-3838. Fix the typo in FSEditLog.java: isToterationEnabled should be 
+    isTolerationEnabled. (Brandon Li via jitendra)
+
   OPTIMIZATIONS
 
     HDFS-2533. Backport: Remove needless synchronization on some FSDataSet

+ 4 - 4
src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java

@@ -643,7 +643,7 @@ public class FSEditLog {
     long recentOpcodeOffsets[] = new long[4];
     Arrays.fill(recentOpcodeOffsets, -1);
 
-    final boolean isToterationEnabled = tolerationLength >= 0;
+    final boolean isTolerationEnabled = tolerationLength >= 0;
     DataInputStream in = new DataInputStream(tracker);
     Byte opcode = null;
     try {
@@ -670,7 +670,7 @@ public class FSEditLog {
                             "Unsupported version " + logVersion;
 
       while (true) {
-        if (isToterationEnabled) {
+        if (isTolerationEnabled) {
           //mark position could be reset in case of exceptions
           in.mark(TRANSACTION_LENGTH_LIMIT); 
         }
@@ -1007,7 +1007,7 @@ public class FSEditLog {
           + ") at position " + tracker.getPos()
           + ", edit log length is " + edits.length()
           + ", opcode=" + opcode
-          + ", isToterationEnabled=" + isToterationEnabled;
+          + ", isTolerationEnabled=" + isTolerationEnabled;
 
       // Catch Throwable because in the case of a truly corrupt edits log, any
       // sort of error might be thrown (NumberFormat, NullPointer, EOF, etc.)
@@ -1035,7 +1035,7 @@ public class FSEditLog {
       }
 
       LOG.warn(msg, t);
-      if (isToterationEnabled) {
+      if (isTolerationEnabled) {
         in.reset(); //reset to the beginning position of this transaction
       } else {
         //edit log toleration feature is disabled