Rishabh Daim created OAK-12440:
----------------------------------

             Summary: Isolate relative property query tests across parallel 
fixtures
                 Key: OAK-12440
                 URL: https://issues.apache.org/jira/browse/OAK-12440
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Rishabh Daim
            Assignee: Rishabh Daim


QueryTest runs repository fixtures in parallel. Its legacy relative-property 
test sets the JVM-wide oak.useOldInexistenceCheck property to true while the 
newer test assumes false. A concurrent query can therefore use the wrong 
semantics and miss /test/one/child and /test/two/child.

The race was introduced by 
[77c326d485|https://github.com/apache/jackrabbit-oak/commit/77c326d4856] under 
OAK-6838 in 2017. It is independent of the Caffeine changes. Setting the 
property to true reproduces the exact assertion failure in isolation.

Serialize the two compatibility tests across fixtures, explicitly select each 
test's behavior and restore the incoming property. Keep every query assertion 
and leave production code unchanged. Validate both tests and the full QueryTest 
class with parallel Segment Tar and Document fixtures.

[Failing build on PR 
#3185|https://github.com/apache/jackrabbit-oak/actions/runs/37548375160/job/112557758876]




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

Reply via email to