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

Return stream for downloaded files rather than directly from backend

    XMLWordPrintableJSON

Details

    Description

      When the AbstractSharedCachingDataStore#getRecordIfStored is called and if the cache load returns an error from backend then the stream is directly retrieved from backend and returned. This stream should first be downloaded to the temp dir configured and then stream returned over that. If the consuming applications don't close the stream then there's chance of connection pool to the backend getting starved.

      Attachments

        1. unit-tests.log
          35.70 MB
          Julian Reschke
        2. unit-tests.log.gz
          1.22 MB
          Julian Reschke

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: