HADOOP-18118. Fix KMS Accept Queue Size default value to 500 (#3972)
This commit is contained in:
parent
272844ee57
commit
ce54b7e55d
@ -144,7 +144,7 @@ public final class HttpServer2 implements FilterContainer {
|
|||||||
|
|
||||||
public static final String HTTP_SOCKET_BACKLOG_SIZE_KEY =
|
public static final String HTTP_SOCKET_BACKLOG_SIZE_KEY =
|
||||||
"hadoop.http.socket.backlog.size";
|
"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_MAX_THREADS_KEY = "hadoop.http.max.threads";
|
||||||
public static final String HTTP_ACCEPTOR_COUNT_KEY =
|
public static final String HTTP_ACCEPTOR_COUNT_KEY =
|
||||||
"hadoop.http.acceptor.count";
|
"hadoop.http.acceptor.count";
|
||||||
|
@ -743,6 +743,13 @@ public void testBacklogSize() throws Exception
|
|||||||
assertEquals(backlogSize, listener.getAcceptQueueSize());
|
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
|
@Test
|
||||||
public void testIdleTimeout() throws Exception {
|
public void testIdleTimeout() throws Exception {
|
||||||
final int idleTimeout = 1000;
|
final int idleTimeout = 1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user