-
Notifications
You must be signed in to change notification settings - Fork 800
Restore the explicit closes on solr clients in test to prevent resource starvation #3995
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
Conversation
…ation when running tests many times
dsmiley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's impossilbe that this fixes the problem. I still see the problem with this change.
|
Any more details? I was disappointed by this fix, but it did make the Gradle test command pass. |
|
The test failures I see from |
|
I can try and make the change that you are suggesting @janhoy and see what happens. I swear my change was sorting it out! |
|
Oh, I wonder if somethign about how I was running it locally meant it never did the ssl path? |
|
|
|
Closing, as the PR is invalid (explicit closes definitely is of no use). |
|
@dsmiley I know you closed this as not working, but I did a bit more poking, and I pushed up a version that DOES require the SSL and then the test pass. I'm guessing that the the url made by the test rule is somewhat different than the url that was generated in the old way... I made a video of using the annotation to force SSL and saw the bug: https://share.descript.com/view/D7IYXkdqdF3 I think you have a plan, or if you want I can clean up this PR and merge it for the fix. |
|
I think changing this test isn't the way to go. What its doing isn't wrong. Doing so ignores a deeper root cause that likely affects other tests. We need to (somehow) start Solr with "urlScheme" configured on the HttpShardHandlerFactory in solr.xml, which the vast majority of tests use via their use of a test solr.xml that has it with var substitution. We could do so by having each test prep/configure/copy that solr.xml test fixture into place, which is what was happening before via SolrJettyTestBase, now removed. That would be a partial revert to this PR, in a sense -- we can certainly continue with the rule. But that's unsatisfying! Ideally this just gets set automatically if the circumstances are right. I'll post a PR today. |
|
See #4008 for my PR |
This is a follow up to the PR #3947 where the explicit closing of
SolrClient's inDistributedDebugComponentTestfailed.This now passes: