Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3551

DSpace 5x XMLUI open two simultaneous DB connections to serve one item page view or bitstream download

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6
    • Fix Version/s: 5.7
    • Component/s: XMLUI
    • Attachments:
      1
    • Comments:
      12
    • Documentation Status:
      Not Required

      Description

      When visiting an item page or downloading a bitstream in DSpace 5 XMLUI, DSpace does not always reuse the database connection that is bound to the current request. In some places, a new context object is created and this results in retrieving an additional database connection from the connection pool, for example:

      This can lead to pool exhaustion on heavily visited repositories.

      We should refactor the code so that the existing database connection bound to the request is reused on those locations.

       

        Attachments

          Activity

            People

            • Assignee:
              kshepherd Kim Shepherd
              Reporter:
              tom.desair Tom Desair (Atmire)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: