hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kih...@apache.org
Subject hadoop git commit: HDFS-9904. testCheckpointCancellationDuringUpload occasionally fails. Contributed by Lin Yiqun.
Date Tue, 15 Mar 2016 15:54:53 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 d59542953 -> 8b00d9de2


HDFS-9904. testCheckpointCancellationDuringUpload occasionally fails. Contributed by Lin Yiqun.

(cherry picked from commit d4574017845cfa7521e703f80efd404afd09b8c4)


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

Branch: refs/heads/branch-2
Commit: 8b00d9de251e11e7d31b0ca7f51b05a34d939d7e
Parents: d595429
Author: Kihwal Lee <kihwal@apache.org>
Authored: Tue Mar 15 10:54:37 2016 -0500
Committer: Kihwal Lee <kihwal@apache.org>
Committed: Tue Mar 15 10:54:37 2016 -0500

----------------------------------------------------------------------
 .../hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/8b00d9de/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java
index e0c5563..e17e552 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java
@@ -284,6 +284,11 @@ public class TestStandbyCheckpoints {
    */
   @Test(timeout=60000)
   public void testCheckpointCancellationDuringUpload() throws Exception {
+    // Set dfs.namenode.checkpoint.txns differently on the first NN to avoid it
+    // doing checkpoint when it becomes a standby
+    cluster.getConfiguration(0).setInt(
+        DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_TXNS_KEY, 1000);
+
     // don't compress, we want a big image
     cluster.getConfiguration(0).setBoolean(
         DFSConfigKeys.DFS_IMAGE_COMPRESS_KEY, false);


Mime
View raw message