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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/08/13 15:37:47 UTC

[jira] [Created] (OAK-3227) The DiffIndex relies on implementation details

Thomas Mueller created OAK-3227:
-----------------------------------

             Summary: The DiffIndex relies on implementation details
                 Key: OAK-3227
                 URL: https://issues.apache.org/jira/browse/OAK-3227
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller
             Fix For: 1.3.4


The DiffIndex relies on implementation details of the query engine, specially that "query" is called with the exact same parameters as "getCost". This is currently always the case, but it is not a specified contract. 

It's OK to do that right now, but the index should verify that the uuid of "query" does not match that of "getCost". This is to avoid returning the wrong data in case the query engine does no longer works like this.

The problem is that the current behavior can lead to hard to detect problems if the query engine is changed (for example if caching is introduced).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)