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

Don't ignore the cached NULLs in bulk createOrUpdate for Mongo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.6, 1.5.7, 1.6.0
    • mongomk

    Description

      The bulk createOrUpdate operation needs to have old versions of all updated documents. If some documents are not in the cache, they are requested from the Mongo. However, if the document key is cached with the NULL value (which means it doesn't exists), the createOrUpdate ignores such information and tries to load the document from Mongo anyway.

      We shouldn't ignore these NULLs but assume that keys cached with the NULL value indicate an non-existing document.

      If the document exists (because the cache became outdated), the sendBulkUpdate() method will detect it.

      Attachments

        Activity

          People

            tomek.rekawek Tomek Rękawek
            tomek.rekawek Tomek Rękawek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: