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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.6, 1.5.7, 1.6.0
    • Component/s: mongomk
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: