From 620dd37712a4aab779e3a21e1a8cd7bd2de34874 Mon Sep 17 00:00:00 2001 From: GuoPhilipse <46367746+GuoPhilipse@users.noreply.github.com> Date: Tue, 20 Sep 2022 00:10:00 +0800 Subject: [PATCH] HADOOP-18118. [Follow on] Fix test failure in TestHttpServer (#4900) Signed-off-by: Erik Krogen --- .../src/test/java/org/apache/hadoop/http/TestHttpServer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java index b71610588c..37e3415546 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java @@ -747,7 +747,10 @@ public void testBacklogSize() throws Exception public void testBacklogSize2() throws Exception { Configuration conf = new Configuration(); - assertEquals(500, conf.get(HttpServer2.HTTP_SOCKET_BACKLOG_SIZE_KEY)); + HttpServer2 srv = createServer("test", conf); + List listeners = srv.getListeners(); + ServerConnector listener = (ServerConnector)listeners.get(0); + assertEquals(500, listener.getAcceptQueueSize()); } @Test