YARN-9990. Testcase fails with Insufficient configured threads: required=16 < max=10. Contributed by Prabhu Joseph.

This commit is contained in:
Abhishek Modi 2019-11-29 11:54:33 +05:30
parent 44f7b9159d
commit a2dadac790
4 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ public class TestApiServiceClient {
@BeforeClass
public static void setup() throws Exception {
server = new Server(8088);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(10);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(20);
ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/app");
server.setHandler(context);

View File

@ -140,7 +140,7 @@ public class TestSecureApiServiceClient extends KerberosSecurityTestcase {
props = new HashMap<String, String>();
props.put(Sasl.QOP, QualityOfProtection.AUTHENTICATION.saslQop);
server = new Server(8088);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(10);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(20);
ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/app");
server.setHandler(context);

View File

@ -93,7 +93,7 @@ public class TestWebAppProxyServlet {
@BeforeClass
public static void start() throws Exception {
server = new Server(0);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(10);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(20);
ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/foo");
server.setHandler(context);

View File

@ -169,7 +169,7 @@ public class TestAmFilter {
private String startHttpServer() throws Exception {
Server server = new Server(0);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(10);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(20);
ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/foo");
server.setHandler(context);