[
https://issues.apache.org/jira/browse/SOLR-15310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314621#comment-17314621
]
David Smiley commented on SOLR-15310:
-------------------------------------
I saw the same thing in a debugging session recently! I agree with your
assessment... seems like it didn't cause a problem but also seems like it could
either cause future spooky test bugs or mask real bugs.
We may want to handle this like ExecutorUtil.addThreadLocalProvider which
doesn't re-add hooks of the same class. This approach can only work for some
scenarios though -- not when the hook has state/config specific to one cluster.
> HttpClientUtil interceptors are shared by multiple CoreContainer in same Test
> JVM
> ---------------------------------------------------------------------------------
>
> Key: SOLR-15310
> URL: https://issues.apache.org/jira/browse/SOLR-15310
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Mike Drob
> Priority: Major
>
> When running a unit test with multiple nodes, they will all share the same
> HttpClientUtil.interceptors, including PKIAuthentication and possibly others.
> This means that the tests we are running are not like the tests that we would
> expect to see on a real cluster because requests can get processed multiple
> times. Theoretically they should be idempotent, but who knows?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]