-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
regression tests getting stuck with jetty upgrade of v9.4.33 #5922
Comments
Not much there for us to go on! Perhaps share your thread dumps and stack traces? |
Also, tell us about your app. Is it using async servlets? async IO? websocket? JDBC????? |
Here is the thread dump, though we dont see much with jetty threads |
We are using jetty with the http server for the product Sterling B2B integrator. We dont use asyncServlets, but it does have JDBC, websocket. |
Any update or findings on this issue? |
We have 30k test cases, so will the jetty server dump going to help? Its getting stuck after 13.5k tests, just wondering if it fills up the machine, without generating the key data point that we need? |
The thread dumps don't even mention jetty, and I don't even see any jetty classes listed in the java classpath: looks like all that is listed is just cruisecontrol, not what cruisecontrol is running. I would try running these tests outside of cruisecontrol, maybe that will give you some better thread dumps. When you say the tests "hang" what does that mean? Is there a garbage collect in progress? Are there enough server resources - file descriptors, memory etc? Is cruisecontrol itself experiencing some problem? BTW the suggestion of doing a server dump was so that we could see what your jetty configuration and deployment look like. |
Do you have any suggestion, if our tests are hung, how can we troubleshoot it wrt jetty? |
The VM where the CI tests are running is at 75 % CPU |
we are using junit-4.4 |
@janbartel do u have any response based on my previous messages? |
If time is an issue you may want to consider support through webtide.com since open source support is on an as available basis, especially if you are hesitant to share information. This sort of triage is a normal aspect of that support and is typically isolated or specific enough to a situation like yours as to be ill-suited for support in this project forum. It would be different if you could point to a specific commit or issue that is causing your problem but asking for triage is a nebulous ask. |
@4devwithgit sorry but we just don't have enough information. We don't even known what "getting stuck" means in your context? Is it jetty not responding? Or just a test that doesn't complete? Of your 30k tests, you say it is getting "stuck" after 13.5k of them. Can you identify that individual test that it get's stuck on? Can you run just that test by itself? Does it pass? If you remove that test then do the 29.999k tests remaining pass? or do you just get stuck at the 13.501k test? Ultimately we need to see something that is actually stuck, with a description of what it is stuck waiting for. Ideally then with a thread dump and a server dump to match. If you can provide us some of this information here, then we can assist in the open source project. But if you can't provide us with any more information publicly and this is time critical, then please do consider commercial support. @joakime @lachlan-roberts Can you think of any websocket changes since 9.4.26 that could cause an app to become stuck? |
Changes in websocket since 9.4.26
And lots of new tests, javadoc updates, and documentation updates. |
@gregw if their code is using Keep in mind that Finally, for this specific issue, we have no details on what the "stuck" is or means or how it manifests. |
Thanks for the above explanation. @joakime @gregw @jmcc0nn3ll Just to clarify further, So, does the above explanations holds good with the behavior seen above versions used in our product? We are not really hesitant to give more information on the issue, but, we really don't have any concrete information.
|
So it is hanging between tests. Potentially jetty is leaking something or filling something up? But still hard to say without your test frame work. Is this possible: use you test framework to start a jetty server how you currently start it and deploy the simplest webapp possible. Then have a really simple test that you some how duplicate 20k times. This might tickle the same problem and hang the test framework after 13k to 14k tests, in which case you can give us the whole code as it will not have your application in it. Even if that is impossible, if you can give us something that shows how you: start jetty; deploy webapps; send test request; stop the server after the test. We can then try the same. Do you use the websocket client at all? |
The other thing to do is to get get your application and stop/stop it 15k times in a similar environment to your test setup and see what happens. |
Thanks for the suggestions @gregw . I will see if I can get to generate data using the approaches you suggested. Meanwhile, I ran tests using 9.4.27 and 9.4.29, and both passed i.e. no hung state for tests. We are testing it now with the versions, Does 9.4.36 have any known issues that we need to be aware? |
I see regressions tests are getting completed, with 9.4.30 and 9.4.36. So, most likely the issue is introduced in jetty v9.4.31/32. We will evaluate, if we can upgrade to 9.4.36, since its quite new, we need to review. Thanks |
9.4.37.v20210219 has been released. 9.4.38 is in progress as well. The OP still has not provided any actionable information about his reported regression. |
with 9.4.36, our 6.0.3.4 release is working fine. Is it possible to port the fix from 9.4.33 version to 9.4.26? Also, is it possible to reveal the details of the fix? Thanks |
@4devwithgit backporting fixes to specific versions is a service that we provide for our commercial support clients. We can't do that on an open source basis, else we'd end up with infinite versions to support. The details of the fix are in #5452, so you can build your own version. Alternately, use one of the work arounds and wait until a recent release is mature enough for you. |
"Alternately, use one of the work arounds and wait until a recent release is mature enough for you." what is the work around you are referring to? |
List of security advisories https://www.eclipse.org/jetty/security_reports.php That specific advisory - github.com/eclipse/jetty.project/security/advisories/GHSA-g3wg-6mcf-8jj6 |
This issue has been automatically marked as stale because it has been a |
This issue has been closed due to it having no activity. |
Jetty version -v9.4.33
Java version - IBM JDK 8 SR6 FP20
**After we upgraded the jetty in our product from v9.4.26 to 9.4.33/9.4.35, the regression tests cases are consistently getting stuck after running for couple of hours at different tests cases. But if we downgrade the jetty version back to 9.4.26, the tests continues as usual.
We do have some stack trace where jetty classes are getting into some exceptions but yet to locate a clear test case which we can consistently reproduce.
We have also reviewed thread dumps etc when the tests cases were hung, but they dont indicate and issues. Neither the VM nor the DB connectivity were found to be problematic, so are at loss ideas to understand the issue
So, any ideas to come out of this issue or resolve it is highly appreciated. We think this behavior to be jetty upgrade related, but we have not got clear log errors to log a bug, so that's where we need help.**
The text was updated successfully, but these errors were encountered: