[
https://jira.duraspace.org/browse/DS-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852#action_17852
]
Keith Gilbertson commented on DS-677:
-------------------------------------
Committed revision 5538 to trunk, however, per Graham, we will need to re-think
our model for handling database connections.
> xmlui BitstreamReader holds database connections open while large files
> download, exhausting connection pool
> ------------------------------------------------------------------------------------------------------------
>
> Key: DS-677
> URL: https://jira.duraspace.org/browse/DS-677
> Project: DSpace
> Issue Type: Bug
> Components: XMLUI
> Affects Versions: 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2
> Reporter: Keith Gilbertson
> Priority: Major
> Attachments: bitstreamreader_closedb.patch.txt
>
>
> The BitstreamReader in the xmlui needs a database connection to locate
> Bitstreams in the assetstore before sending them back to the client's
> browser. The database connection seems to be held open until the file is
> sent completely. This can cause problems on systems with many users,
> especially where the bitstreams are very large, as with video files. Users
> will see an error when the application is unable to successfully get a
> connection from the database pool.
> A patch is attached that forces the database connection closed by calling
> context.complete() early. Fix has worked very successfully in 1.5.x under
> heavy usage. It has only been tested lightly in DSpace 1.6.x. I'd like to
> commit this for a fix in 1.7, but am unsure:
>
> - Does this patch violate some part of the DSpace architecture by
> closing the db connection in the wrong place?
> - Could JSPUI have a similar problem? Is anyone aware of a technique
> for automatically finding this sort of issue?
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.duraspace.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel