Description
This is the output of the test. Apparently some changes in MongoDB 4.2.0 are allowing to correctly create the document with such long id, which makes the test to fail as it expects an error in that case.
Works fine with MongoDB 4.0.12.
[ERROR] Tests run: 111, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 23.079 s <<< FAILURE! - in org.apache.jackrabbit.oak.plugins.document.BasicDocumentStoreTest
[ERROR] testLongId[MongoFixture: MongoDB](org.apache.jackrabbit.oak.plugins.document.BasicDocumentStoreTest) Time elapsed: 0.019 s <<< FAILURE!
java.lang.AssertionError: create() with ultra-long id needs to fail
{{ at org.apache.jackrabbit.oak.plugins.document.BasicDocumentStoreTest.testLongId(BasicDocumentStoreTest.java:414)}}
I think this is related with the Index Key Limit, which has been removed in MongoDB 4.2.0:
https://docs.mongodb.com/manual/reference/limits/#Index-Key-Limit