소스 검색

HDFS-1319. Fix location of re-login for secondary namenode from HDFS-999.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@979817 13f79535-47bb-0310-9956-ffa450edef68
Jakob Homan 15 년 전
부모
커밋
602003003a
2개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 1
      CHANGES.txt
  2. 4 3
      src/java/org/apache/hadoop/hdfs/server/namenode/SecondaryNameNode.java

+ 4 - 1
CHANGES.txt

@@ -166,7 +166,10 @@ Trunk (unreleased changes)
     exception on the server side.  (szetszwo)
 
     HDFS-1308. job conf key for the services name of DelegationToken for HFTP
-     url is constructed incorrectly in HFTPFileSystem (boryas)
+    url is constructed incorrectly in HFTPFileSystem (boryas)
+
+    HDFS-1319. Fix location of re-login for secondary namenode from HDFS-999. 
+    (jghoman)
 
 Release 0.21.0 - Unreleased
 

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

@@ -294,6 +294,10 @@ public class SecondaryNameNode implements Runnable {
         break;
       }
       try {
+        // We may have lost our ticket since last checkpoint, log in again, just in case
+        if(UserGroupInformation.isSecurityEnabled())
+          UserGroupInformation.getCurrentUser().reloginFromKeytab();
+        
         long now = System.currentTimeMillis();
 
         long size = namenode.getEditLogSize();
@@ -410,9 +414,6 @@ public class SecondaryNameNode implements Runnable {
                             "after creating edits.new");
     }
 
-    // We may have lost our ticket since last checkpoint, log in again, just in case
-    if(UserGroupInformation.isSecurityEnabled())
-      UserGroupInformation.getCurrentUser().reloginFromKeytab();
     downloadCheckpointFiles(sig);   // Fetch fsimage and edits
     doMerge(sig);                   // Do the merge