Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryHelperIT.testHasQueryIndexForACLsWithIndex sometimes fails #755

Open
kwin opened this issue Jul 16, 2024 · 0 comments
Open

QueryHelperIT.testHasQueryIndexForACLsWithIndex sometimes fails #755

kwin opened this issue Jul 16, 2024 · 0 comments

Comments

@kwin
Copy link
Member

kwin commented Jul 16, 2024

During the CI build the QueryHelperIT sometimes fails.
It emits then

[INFO] Running biz.netcentric.cq.tools.actool.helper.QueryHelperIT
[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Found a new index node [reference]. Reindexing is requested
[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Reindexing will be performed for following indexes: [/oak:index/uuid, /oak:index/reference, /oak:index/nodetype]
[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Indexing report
    - /oak:index/uuid*(0)
    - /oak:index/reference*(0)
    - /oak:index/nodetype*(1252)

[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Reindexing completed
[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Reindexing will be performed for following indexes: [/oak:index/principalName, /oak:index/authorizableId, /oak:index/acPrincipalName, /oak:index/repMembers]
[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Indexing report
    - /oak:index/principalName*(2)
    - /oak:index/authorizableId*(2)
    - /oak:index/acPrincipalName*(0)
    - /oak:index/repMembers*(0)

[main] INFO org.apache.jackrabbit.oak.plugins.index.IndexUpdate - Reindexing completed
[main] INFO biz.netcentric.cq.tools.actool.extensions.OakRepository - repository created: Apache Jackrabbit Oak 1.48.0
[main] WARN org.apache.jackrabbit.oak.query.QueryImpl - Traversal query (query without index): EXPLAIN MEASURE SELECT * FROM [rep:ACL] AS s WHERE ISDESCENDANTNODE([/]); consider creating an index
Error:  Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.234 s <<< FAILURE! -- in biz.netcentric.cq.tools.actool.helper.QueryHelperIT
Error:  biz.netcentric.cq.tools.actool.helper.QueryHelperIT.testHasQueryIndexForACLsWithIndex(Session) -- Time elapsed: 0.008 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:179)
	at biz.netcentric.cq.tools.actool.helper.QueryHelperIT.testHasQueryIndexForACLsWithIndex(QueryHelperIT.java:60)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

[INFO] 
[INFO] Results:
[INFO] 
Error:  Failures: 
Error:    QueryHelperIT.testHasQueryIndexForACLsWithIndex:60 expected: <true> but was: <false>

(e.g. in https://github.com/Netcentric/accesscontroltool/actions/runs/9959305308/job/27515848789?pr=754).

It is currently unclear under which circumstances this may happen.

@kwin kwin changed the title QueryHelperIT sometimes fails QueryHelperIT.testHasQueryIndexForACLsWithIndex sometimes fails Jul 16, 2024
kwin added a commit that referenced this issue Jul 16, 2024
Remove unused log4j config

This relates to #755
kwin added a commit that referenced this issue Jul 16, 2024
Remove unused log4j config

This relates to #755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant