-
Notifications
You must be signed in to change notification settings - Fork 808
SOLR-16687: Add a SolrClassLoader to SolrZkClient #1508
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
SOLR-16687: Add a SolrClassLoader to SolrZkClient #1508
Conversation
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.
This looks 👍 so far. Given a bit more time for other folks to review and some automated tests, I'd be happy to merge!
|
I think the classloader needs to be used in both |
Hi @gerlowskija I have also changed the behavior in case of an Exception is raised when instantiating ZkACLProvider or ZkCredentialsInjector, it should fail-fast rather then ignoring it and go with the default ZkACLProvider/ZkCredentialsInjector which sets znodes permissions to OPEN_ACL_UNSAFE. |
I think a solrClassLoader is not needed for ZkACLProvider and ZkCredentialsProvider except if we add in the future custom implementations part of another contrib/module, but it doesn't hurt to add it now. I have added it to both methods. |
gerlowskija
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.
This LGTM from a testing perspective; it's not ideal but I've wracked my brain trying to come up with a more comprehensive way to do this, without much luck.
It'd be good to give Houston another few days to chime in though, since he had other concerns to speak to.
solr/solrj-zookeeper/src/test/org/apache/solr/common/cloud/SolrZkClientTest.java
Show resolved
Hide resolved
solr/solrj-zookeeper/src/test/org/apache/solr/common/cloud/SolrZkClientTest.java
Show resolved
Hide resolved
|
My concerns have been addressed! |
Allows ZkCredentialsProviders from other modules or plugins to be found by SolrZkClient. --------- Co-authored-by: Lamine Idjeraoui <lidjeraoui@apple.com> Co-authored-by: Jason Gerlowski <gerlowskija@apache.org>
https://issues.apache.org/jira/browse/SOLR-16687
Description
A Solr class loader is needed in SolrZKClient to instantiate classes part of modules.
This is part of a bigger PR to add support of AWS Secret Manager to store Zookeeper credentials.
Tests
Local integration tests.
Checklist
Please review the following and check all that apply:
mainbranch../gradlew check.