YARN-9990. Testcase fails with Insufficient configured threads: required=16 < max=10. Contributed by Prabhu Joseph.
This commit is contained in:
parent
44f7b9159d
commit
a2dadac790
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user