Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB8858D8A for ; Wed, 10 Aug 2011 22:33:52 +0000 (UTC) Received: (qmail 62675 invoked by uid 500); 10 Aug 2011 22:33:52 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 62632 invoked by uid 500); 10 Aug 2011 22:33:52 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 62624 invoked by uid 99); 10 Aug 2011 22:33:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 22:33:51 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 22:33:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CEC20B6AB8 for ; Wed, 10 Aug 2011 22:33:27 +0000 (UTC) Date: Wed, 10 Aug 2011 22:33:27 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: <1289146426.25662.1313015607828.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-2430) embedded RESTful fileserver do not close files when PUT method is called MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-2430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish updated AMQ-2430: ------------------------------ Affects Version/s: (was: 6.0.0) > embedded RESTful fileserver do not close files when PUT method is called > ------------------------------------------------------------------------ > > Key: AMQ-2430 > URL: https://issues.apache.org/jira/browse/AMQ-2430 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.2.0, 5.3.0 > Environment: linux 64 bits, but probably not significant > Reporter: Fabien MARTY > Fix For: 5.6.0 > > Original Estimate: 5m > Remaining Estimate: 5m > > 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. For more information on JIRA, see: http://www.atlassian.com/software/jira