activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-2430) embedded RESTful fileserver do not close files when PUT method is called
Date Sat, 18 Sep 2010 16:47:47 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-2430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bruce Snyder updated AMQ-2430:
------------------------------

    Fix Version/s: 5.5.0
                       (was: 5.4.1)

> embedded RESTful fileserver do not close files when PUT method is called
> ------------------------------------------------------------------------
>
>                 Key: AMQ-2430
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2430
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.2.0, 5.3.0, 6.0.0
>         Environment: linux 64 bits, but probably not significant
>            Reporter: Fabien MARTY
>             Fix For: 5.5.0
>
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> When doing a massive uploading of blobs with activemq 5.2 (same thing on svn trunk) on
the embedded RESTful fileserver, you get a "too many open files" error and the system doesn't
work anymore.
> Steps to reproduce :
> * send a BlobMessage with "jms.blobTransferPolicy.uploadUrl=http://127.0.0.1:8161/fileserver/"
> * use "lsof |grep fileserver" command and you will see your uploaded BLOB still open
> The fix seems really easy (works ok for me) :
> * open "RestFilter.java"
> * locate the "doPut()" method
> * change :
> {code} 
> try {
>     IO.copy(request.getInputStream(), out);
>  } catch (IOException e) {
> {code}
> with :
> {code} 
> try {
>     IO.copy(request.getInputStream(), out);
>     out.close();
>  } catch (IOException e) {
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message