Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checking potential fix for build failures on AsyncQueryForwardingServletTest #1233

Merged

Conversation

himanshug
Copy link
Contributor

in test explicitly setting maxThreads=256 for ProxyServlet to work around https://tickets.puppetlabs.com/browse/TK-152

if this gets fixed, then we might want to do this in RouterJettyServerInitializer.java also

@himanshug
Copy link
Contributor Author

ok, this fixes the build. I don't know whether to wait for original bug to get fixed or put this in the RouterJettyServerInitializer.java also. (this bug might cause router to just block if jetty server is not initialized with enough threads)

what do you think?

@drcrallen
Copy link
Contributor

Adding a thread limit without a way to record the usage seems risky. Is it possible to add the number of used threads as a metric or something?

@drcrallen
Copy link
Contributor

Also, can you add a unit test so behavior can be defined for what happens if the thread count limit is met? This might require making the limit configurable.

@drcrallen
Copy link
Contributor

In the short term, if there's a way to make this as big or larger than the servlet executor pool would at least provide some limit compared to prior behavior.

@xvrl
Copy link
Member

xvrl commented Mar 23, 2015

@himanshug thanks for tracking this down! I wonder if this affects the router as well or not. I'm a bit puzzled as to why this test started failing, since we didn't change any of that code or updated jetty. Something on the Travis end must have changed that triggers this bug, maybe the default number of threads is tied to the number of cores, and that may have changed.

@xvrl
Copy link
Member

xvrl commented Mar 23, 2015

@himanshug do you mind adding a comment above the line you added to refer to the bug? I'll merge after that.

@drcrallen
Copy link
Contributor

As a general FYI, it looks like this behavior is still present in 9.3.0 but in a different place than referenced in the original ticket.

@himanshug himanshug force-pushed the async_query_forwarding_servlet_test_fix branch from 00bd45d to b5b32db Compare March 23, 2015 17:27
@himanshug
Copy link
Contributor Author

@xvrl added the comment

@drcrallen I believe your comments are towards the conclusion that we should update RouterJettyServerInitializer.java with configurable number of threads and not necessarity wait from jetty to fix the issue?

xvrl added a commit that referenced this pull request Mar 23, 2015
…t_test_fix

checking potential fix for build failures on AsyncQueryForwardingServletTest
@xvrl xvrl merged commit b2f3521 into apache:master Mar 23, 2015
@drcrallen
Copy link
Contributor

@himanshug : yes, especially since the workaround is pretty straight forward.

@himanshug himanshug deleted the async_query_forwarding_servlet_test_fix branch May 16, 2015 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants