Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-5468

http connection leak triggered by LocalStorageException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None

      Description

      This is "do not leak http connection" part of NEXUS-5466.

      Analysis.
      DefaultFSLocalRepositoryStorage.storeItem is expected to consume and close InputStream of provided StorageItem, but the implementation does not guarantee this. Specifically, LocalStorageException thrown by getFileFromBase bypasses the code that closes the InputStream. For remote storage items this results in http connections never returned to the connection pool, which eventually leads to the connection pool exhaustion observed in NEXUS-5466

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ifedorenko Igor Fedorenko
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title