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

MongoDocumentStore.findDocuments can fail with BSON exception

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      This can happen in an edge case where the BSON condition exceeds the 16MB limit (see in test for OAK-10642).

      The quick fix is to catch the exception and then use a simplified version of the method that get's the documents one-by-one.

      Mid-term, we may want to refactor this so that we avoid the exception by limiting the size of the BSON condition proactively.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment