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 "Marcel Reutegger (Jira)" <ji...@apache.org> on 2021/02/15 15:34:00 UTC

[jira] [Assigned] (OAK-8582) Failing test in MongoDB 4.2.0: BasicDocumentStoreTest.testLongId

     [ https://issues.apache.org/jira/browse/OAK-8582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger reassigned OAK-8582:
-------------------------------------

    Assignee: Marcel Reutegger
    Priority: Minor  (was: Major)

Thanks for reporting. I will change the test and let it skip that part when running on MongoDB. This is then similar to the MemoryDocumentStore where such a limit does not exist either.

> Failing test in MongoDB 4.2.0: BasicDocumentStoreTest.testLongId
> ----------------------------------------------------------------
>
>                 Key: OAK-8582
>                 URL: https://issues.apache.org/jira/browse/OAK-8582
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>            Reporter: José Andrés Cordero Benítez
>            Assignee: Marcel Reutegger
>            Priority: Minor
>
> {{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.}}
> {quote}{{[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)}}
> {quote}
> 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]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)