lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucene-solr] mikemccand commented on a change in pull request #1049: LUCENE-9074: Slice Allocation Circuit Breakers in IndexSearcher
Date Mon, 02 Dec 2019 13:36:01 GMT
mikemccand commented on a change in pull request #1049: LUCENE-9074: Slice Allocation Circuit
Breakers in IndexSearcher
URL: https://github.com/apache/lucene-solr/pull/1049#discussion_r352594512
 
 

 ##########
 File path: lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java
 ##########
 @@ -193,6 +196,13 @@ public IndexSearcher(IndexReader r, Executor executor) {
     this(r.getContext(), executor);
   }
 
+  /** Same as above with additional Circuit Breaker passed in
+   *
+   * @lucene.experimental */
+  public IndexSearcher(IndexReader r, Executor executor, SliceAllocationCircuitBreaker sliceAllocationCircuitBreaker)
{
 
 Review comment:
   I think it'd be cleaner if we combined the `Executor` and this new `SliceAllocationCircuitBreaker`
into a single new interface that could both provide the `Executor` and the red-line logic?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Mime
View raw message