gus-asf commented on PR #2960:
URL: https://github.com/apache/solr/pull/2960#issuecomment-2625369713

   > (not thinking of backwards compatibility here, just thinking holistically)
   > 
   > I appreciate that there are very different causes of a terminated request, 
and we want to differentiate them in case the client cares and for diagnostics. 
But semantically to the caller, the cause is irrelevant (right?), so I think a 
simple flag/enum should be returned _separate_ for the cause. I'm not arguing 
the cause should be hidden / indiscernible. I understand, once upon a time, 
there was a single cause of "terminate early" but as Solr has matured to do so 
under growing conditions, we shouldn't be held back by segment terminated early 
as the one and only terminate-early. Let's step back and change names / 
semantics if needed. Solr 10 is coming.
   
   If by "caller" you mean the person/programmer/code that is leveraging solr 
to make a fabulous profit or save the world then there are two questions to 
answer: 1) can we trust these results as 100% definitive 2) what can be done to 
obtain definitive results if that's important. For number 1 we don't need to 
know why we just need to know if it's trustworthy, that's entirely binary as 
you suggest. However if we need to adjust things to supply definitive results 
(for that one case the customer really cares about, etc) then we need to know 
which nob to turn, and thus it matters which option is the limiting factor (one 
might set multiple limits or be using limits with this feature). 
   
   If by caller you mean the next (few) method(s) up the stack, then there is 
at least one important distinction between this and limits. In the limits case, 
we typically want to stop all work ASAP once the limit is hit. In this case the 
intent is that all shards should return up to the limiting number of hits. We 
wouldn't want to stop or terminate any other subrequests for this feature. 
Notably this feature would not protect the users from a shard living on a 
critically limping and slow server, whereas timeAllowed should ensure some sort 
of response even if one shard has nearly (but not quite) ground to a halt. 


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to