Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • jackrabbit-data
    • None

    Description

      Enabling AsyncUploadCache can lead to data inconsistencies. When a node is created the CachingDataStore#addRecord call returns immediately with the blob id, while corresponding blob is uploaded asynchronously. This can cause the inconsistency as if there is an error in the upload the node is already created.
      Also, this may not be visible immediately and it will be very hard to discern the root cause.

      AsyncUploadCache is enabled by default with value set to 100 and should be disabled by default by setting to 0.

      Attachments

        Issue Links

          Activity

            amitjain Amit Jain added a comment - - edited
            amitjain Amit Jain added a comment - - edited cc/ chetanm , shgupta@adobe.com , thomasm
            reschke Julian Reschke added a comment -

            Amit - this is marked "critical". Can it be moved out anyway???

            reschke Julian Reschke added a comment - Amit - this is marked "critical". Can it be moved out anyway???

            Bulk move to 2.13.3.

            mreutegg Marcel Reutegger added a comment - Bulk move to 2.13.3.
            woon_san Woonsan Ko added a comment - - edited

            Hi,

            While trying to fix JCR-4008, I provided a pull request, giving an option to disable AsyncUpload when org.apache.jackrabbit.core.data.AbstractBackend.asyncWritePoolSize is zero or lower (which can be set by each CachingDataStore from properties).
            Could someone review JCR-4008? I guess that will fix this issue as well.

            Thanks in advance,

            Woonsan

            woon_san Woonsan Ko added a comment - - edited Hi, While trying to fix JCR-4008 , I provided a pull request, giving an option to disable AsyncUpload when org.apache.jackrabbit.core.data.AbstractBackend.asyncWritePoolSize is zero or lower (which can be set by each CachingDataStore from properties). Could someone review JCR-4008 ? I guess that will fix this issue as well. Thanks in advance, Woonsan

            People

              Unassigned Unassigned
              amitjain Amit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: