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

Dilli Arumugam commented on KNOX-157:
-------------------------------------

Reviewed, tested and pushed Kevin's patch os using 
PartiallyRepeatableHttpEntity.
Using PartiallyRepeatableHttpEntity should definitely help.
I verified all the curl examples.
However, these examples passed even without using PartiallyRepeatableHttpEntity.
We should do some load testing and confirm that the fix is good. It should be.

> Knox is not able to process PUT/POST requests with large payload
> ----------------------------------------------------------------
>
>                 Key: KNOX-157
>                 URL: https://issues.apache.org/jira/browse/KNOX-157
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.3.0
>            Reporter: Vladimir Tkhir
>            Assignee: Dilli Arumugam
>            Priority: Critical
>             Fix For: 0.3.0
>
>         Attachments: 
> KNOX-157__Integrate_alternate_implementation_of_HttpEntity_supporting_optimistically_repea.patch,
>  KNOX-157.patch, KNOX-157.patch
>
>
> Getting OutOfMemory exception when trying to process PUT/POST requests with 
> large bodies. As an example create 1GB file in HDFS via Knox.
> Issue is related to replaying bodies on requests dispatch.
> From Kevin:
> We need a special version of a BufferedHttpEntity that will buffer up to the 
> first n bytes and then if getContent() is called again after that many bytes 
> have been read it throws an exception.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to