-
Notifications
You must be signed in to change notification settings - Fork 690
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-17290: Update SyncStrategy and PeerSyncWithLeader to use the recovery Http2SolrClient #2460
SOLR-17290: Update SyncStrategy and PeerSyncWithLeader to use the recovery Http2SolrClient #2460
Conversation
I don't think this PR should be for SOLR-16503. It should be SOLR-16505 (it's okay it's closed, can be reopened; is unreleased so there's time) as it's focused on "recovery". Or perhaps a new JIRA. |
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.
The code changes look good.
New JIRA, Done! |
For SyncStrategy we have re-created Http2SolrClient due to custom timeouts and never called |
+1; will merge tomorrow.
Maybe you know something I don't here; what technical mechanism doesn't happen for recovery for auth? AFAIK all Solr-to-Solr communication needs to support AuthenticationPlugin. And I believe it is == see |
I found a bug in SOLR-16505! |
Would love some thoughts on how we could handle the auth scenarios better without having to write an explicit test for it on every piece of code, once with auth and once with out ;-) |
As per the quick search for the usages of For instance, after merging #2462, same test case would be extends to test SyncStrategy and PeerSyncWithLeader Http2SolrClient calls to make sure that they are executing without any errors in auth enabled SolrCloud environment. |
Should this be merged or should it be pending some authentication/authorization fix? |
I updated the SyncStrategy to call |
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.
Just one little glitch here but otherwise I approve.
…overy Http2SolrClient (#2460) * Both SyncStrategy and PeerSyncWithLeader now utilize the recovery Http2SolrClient supplied by UpdateShardHandler. * In PeerSyncWithLeader, the unnecessary re-creation of the client has been removed. --------- Co-authored-by: Sanjay Dutt <[email protected]> Co-authored-by: David Smiley <[email protected]> (cherry picked from commit 2b28161)
https://issues.apache.org/jira/browse/SOLR-17290
As per the discussion on this thread SOLR-16505, It has been identified that
PeerSyncWithLeader
andSyncStrategy
both were using the default HttpClient. Because both of these classes are meant for "recovery" operations, then why not switch their client to use recovery Http Client.Also, now that SOLR-16505 has been merged, the above change will enable
PeerSyncWithLeader
andSyncStrategy
to use Jetty HTTP2 client.Tests
No Test Cases Provided.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.