From e2968f5da2e46c5fcd32bbf7aa5ac3e94bddb443 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Wed, 20 Apr 2016 11:33:11 -0700 Subject: [PATCH] HDFS-10308. TestRetryCacheWithHA#testRetryCacheOnStandbyNN failing (Rakesh R via cmccabe) (cherry picked from commit ad36fa6f42870c517526618a30204b443bfc6b5a) (cherry picked from commit 76d963acb422f7b7e8e83768ab4be538ea5ad94e) --- .../hadoop/hdfs/server/namenode/TestNamenodeRetryCache.java | 4 ++-- .../hadoop/hdfs/server/namenode/ha/TestRetryCacheWithHA.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeRetryCache.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeRetryCache.java index 767562cf9ce..26efce5b75c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeRetryCache.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestNamenodeRetryCache.java @@ -416,7 +416,7 @@ public class TestNamenodeRetryCache { LightWeightCache cacheSet = (LightWeightCache) namesystem.getRetryCache().getCacheSet(); - assertEquals(25, cacheSet.size()); + assertEquals("Retry cache size is wrong", 26, cacheSet.size()); Map oldEntries = new HashMap(); @@ -435,7 +435,7 @@ public class TestNamenodeRetryCache { assertTrue(namesystem.hasRetryCache()); cacheSet = (LightWeightCache) namesystem .getRetryCache().getCacheSet(); - assertEquals(25, cacheSet.size()); + assertEquals("Retry cache size is wrong", 26, cacheSet.size()); iter = cacheSet.iterator(); while (iter.hasNext()) { CacheEntry entry = iter.next(); diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestRetryCacheWithHA.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestRetryCacheWithHA.java index ae355795fba..28593b26cbc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestRetryCacheWithHA.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestRetryCacheWithHA.java @@ -165,7 +165,7 @@ public class TestRetryCacheWithHA { FSNamesystem fsn0 = cluster.getNamesystem(0); LightWeightCache cacheSet = (LightWeightCache) fsn0.getRetryCache().getCacheSet(); - assertEquals(25, cacheSet.size()); + assertEquals("Retry cache size is wrong", 26, cacheSet.size()); Map oldEntries = new HashMap(); @@ -186,7 +186,7 @@ public class TestRetryCacheWithHA { FSNamesystem fsn1 = cluster.getNamesystem(1); cacheSet = (LightWeightCache) fsn1 .getRetryCache().getCacheSet(); - assertEquals(25, cacheSet.size()); + assertEquals("Retry cache size is wrong", 26, cacheSet.size()); iter = cacheSet.iterator(); while (iter.hasNext()) { CacheEntry entry = iter.next();