jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-7798) Return stream for downloaded files rather than directly from backend
Date Tue, 09 Oct 2018 05:40:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-7798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16642829#comment-16642829
] 

Julian Reschke commented on OAK-7798:
-------------------------------------

Attached. Found:

{noformat}
07:35:31.227 ERROR [main] AbstractSharedCachingDataStore.java:214 Error retrieving record
[8d443f03a518d69de838e5a8ac4cab
c914e6e5a9548f8f95c73d2e5f90bf99c1]
java.lang.NullPointerException: null
        at org.apache.jackrabbit.oak.plugins.blob.AbstractSharedCachingDataStore.getRecordIfStored(AbstractSharedCachingDataStore.java:211)
        at org.apache.jackrabbit.oak.plugins.blob.CachingDataStoreTest.zeroStagingCacheAddGetDelete(CachingDataStoreTest.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
{noformat}

> Return stream for downloaded files rather than directly from backend 
> ---------------------------------------------------------------------
>
>                 Key: OAK-7798
>                 URL: https://issues.apache.org/jira/browse/OAK-7798
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: blob-plugins
>            Reporter: Amit Jain
>            Assignee: Amit Jain
>            Priority: Major
>              Labels: candidate_oak_1_6, candidate_oak_1_8
>             Fix For: 1.10, 1.9.9
>
>         Attachments: unit-tests.log
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message