HADOOP-18118. Fix KMS Accept Queue Size default value to 500 (#3972)

This commit is contained in:
GuoPhilipse 2022-09-15 00:53:25 +08:00 committed by GitHub
parent 272844ee57
commit ce54b7e55d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public final class HttpServer2 implements FilterContainer {
public static final String HTTP_SOCKET_BACKLOG_SIZE_KEY =
"hadoop.http.socket.backlog.size";
public static final int HTTP_SOCKET_BACKLOG_SIZE_DEFAULT = 128;
public static final int HTTP_SOCKET_BACKLOG_SIZE_DEFAULT = 500;
public static final String HTTP_MAX_THREADS_KEY = "hadoop.http.max.threads";
public static final String HTTP_ACCEPTOR_COUNT_KEY =
"hadoop.http.acceptor.count";

View File

@ -743,6 +743,13 @@ public void testBacklogSize() throws Exception
assertEquals(backlogSize, listener.getAcceptQueueSize());
}
@Test
public void testBacklogSize2() throws Exception
{
Configuration conf = new Configuration();
assertEquals(500, conf.get(HttpServer2.HTTP_SOCKET_BACKLOG_SIZE_KEY));
}
@Test
public void testIdleTimeout() throws Exception {
final int idleTimeout = 1000;