Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8582

Failing test in MongoDB 4.2.0: BasicDocumentStoreTest.testLongId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.40.0, 1.22.7
    • mongomk
    • None

    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

       

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            corderob José Andrés Cordero Benítez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: