-
Notifications
You must be signed in to change notification settings - Fork 809
SOLR-17931: Remove deprecated ShardRequestTracker.track(). #3773
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
Refactored collection creation command so it does not use internals of ShardRequestTracker.
| ShardRequest sreq = new ShardRequest(); | ||
| sreq.nodeName = nodeName; | ||
| params.set("qt", ccc.getAdminPath()); | ||
| sreq.purpose = ShardRequest.PURPOSE_PRIVATE; | ||
| sreq.shards = new String[] {baseUrl}; | ||
| sreq.actualShards = sreq.shards; | ||
| sreq.params = params; |
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.
what became of this?
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.
I should have commented in the PR. This is all done by calling shardRequestTracker.sendShardRequest() that then calls ShardHandler. To me, this is all internal to shard handler, there was no good reasons to duplicate this in the command.
| } | ||
|
|
||
| /** Internal structure to track cores to create with the collection. */ | ||
| private record CoreToCreate(String nodeName, ModifiableSolrParams params) {} |
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.
I'm not seeing that this named structure adds any clarity, honestly. But if you think so then ok.
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.
I agree this may be too verbose. I removed it and used a simple map instead.
Refactored collection creation command so it does not use internals of ShardRequestTracker, but uses it to submit requests with public methods.
https://issues.apache.org/jira/browse/SOLR-17931
Refactored collection creation command so it does not use internals of ShardRequestTracker, but uses it to submit requests with public methods.