[ https://issues.apache.org/jira/browse/SOLR-13865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16961524#comment-16961524 ]
ASF subversion and git services commented on SOLR-13865: -------------------------------------------------------- Commit fa27e476f74bc4ba83e3fcdc39b421bc53a45d16 in lucene-solr's branch refs/heads/master from Houston Putman [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=fa27e47 ] SOLR-13865: Migrate replica routing code to SolrJ (#974) * [SOLR-13865] Migrate replica routing code to solrJ * Added a CommonTestInjection class. * Fixing imports. * Reverted extraneous streaming changes. * Fix precommit errors. * Changing name of the RLTManager. * Splitting up existing tests. * Updated documentation. * Added solr/CHANGES.txt entry > Centralize the replica-choosing strategy for distributed requests across Solr > ----------------------------------------------------------------------------- > > Key: SOLR-13865 > URL: https://issues.apache.org/jira/browse/SOLR-13865 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrJ, streaming expressions > Affects Versions: master (9.0), 8.4 > Reporter: Houston Putman > Priority: Minor > Time Spent: 1h 40m > Remaining Estimate: 0h > > In general, all parts of Solr that choose a replica of a shard to send a > request to should use similar logic. > From what I can tell, the > {{HttpShardHandlerFactory.NodePreferenceRulesComparator}} is the most > comprehensive replica request routing strategy within Solr. It would be great > if this logic could be moved to the SolrJ package, so that it could be used > across more of solr. Forms of this same decision making are found in many > places, such as Streaming Expressions and SolrJ Clients > ([SOLR-12217|https://issues.apache.org/jira/browse/SOLR-12217]). There's no > reason that each should implement their own logic when they could easily > share one. That way, additional routing parameters can be added in one place > and be available for all types of requests. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org