[ 
https://issues.apache.org/jira/browse/LUCENE-8855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872558#comment-16872558
 ] 

Andrzej Bialecki  commented on LUCENE-8855:
-------------------------------------------

{quote}Could we make it fail if it encounters an unknown object 
{quote}
It's not a strict calculation anyway so I don't think we should fail, esp. 
since some queries (LTR) may legitimately contain arbitrary parameters - we 
could simply assume a larger default value for unknown objects, equivalent eg. 
to a class with a few primitive and a few moderately-sized String fields (256 
bytes? 384 bytes?).

> Add Accountable to Query implementations
> ----------------------------------------
>
>                 Key: LUCENE-8855
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8855
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>            Priority: Major
>         Attachments: LUCENE-8855.patch, LUCENE-8855.patch, LUCENE-8855.patch, 
> LUCENE-8855.patch
>
>
> Query implementations should also support {{Accountable}} API in order to 
> monitor the memory consumption e.g. in caches where either keys or values are 
> {{Query}} instances.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to