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

(cherry picked from commit a2dadac790ae3b4e3ab411be84d909d18af33f6e)
This commit is contained in:
Abhishek Modi 2019-11-29 11:54:33 +05:30 committed by Akira Ajisaka
parent 1f9a315625
commit c5e2ec465b
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
4 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ protected void doDelete(HttpServletRequest req, HttpServletResponse resp)
@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

@ -139,7 +139,7 @@ public void setUp() throws Exception {
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

@ -88,7 +88,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

@ -168,7 +168,7 @@ public void testFindRedirectUrl() throws Exception {
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);