[ 
https://issues.apache.org/jira/browse/OAK-12442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rishabh Daim resolved OAK-12442.
--------------------------------
    Fix Version/s: 2.8.0
       Resolution: Fixed

> Isolate the conditional-path query test from built-in index counters
> --------------------------------------------------------------------
>
>                 Key: OAK-12442
>                 URL: https://issues.apache.org/jira/browse/OAK-12442
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Rishabh Daim
>            Assignee: Rishabh Daim
>            Priority: Major
>             Fix For: 2.8.0
>
>
> The conditional-path query test added by OAK-12406 assumes only its test node 
> has reindexCount > 0. Elasticsearch retains the built-in nodetype and uuid 
> indexes, whose reindex counts also match; Lucene removes these indexes during 
> setup. The Elasticsearch assertion therefore expects one result but receives 
> three.
> Reproduced on unmodified trunk b062e3387d: 
> ElasticFunctionIndexCommonTest#opFunctionConditionalPathQuery fails with 
> [/oak:index/a, /oak:index/nodetype, /oak:index/uuid]. The same Lucene test 
> passes.
> Use a test-only counter property in this test. Keep the conditional function, 
> path restriction, index-plan and exact-result assertions unchanged. No 
> production changes.
> Introduced by [ce490ed89e 
> (OAK-12406)|https://github.com/apache/jackrabbit-oak/commit/ce490ed89e8b56382b7c3cb9719dde540f8be414].
>  Observed in [PR 3193 
> CI|https://github.com/apache/jackrabbit-oak/actions/runs/37608837375/job/112750860072],
>  independently of its logging fix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to