You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Manfred Baedke (Jira)" <ji...@apache.org> on 2021/02/11 17:48:00 UTC
[jira] [Commented] (OAK-9354) SelectorImpl#getSize(SizePrecision,
long) returns -1 after the internal cursor has been processed
[ https://issues.apache.org/jira/browse/OAK-9354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17283246#comment-17283246 ]
Manfred Baedke commented on OAK-9354:
-------------------------------------
Attached patch proposal.
> SelectorImpl#getSize(SizePrecision, long) returns -1 after the internal cursor has been processed
> --------------------------------------------------------------------------------------------------
>
> Key: OAK-9354
> URL: https://issues.apache.org/jira/browse/OAK-9354
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: oak-search
> Reporter: Manfred Baedke
> Assignee: Manfred Baedke
> Priority: Minor
> Attachments: oak-9354.patch
>
>
> While this is technically not a bug because it doesn't break the method contract, it is completely unnecessary and particularly strange in case of a query with 0 results, because in this case it will return -1 even when the object has just been created. This is particularly annoying if the query is part of a union.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)