Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-265

Restrict file size hook consumes large amount of heap space when excluding large LFS files

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.1.8
    • Fix Version/s: 5.3.8
    • Labels:
      None

      Description

      When large files are pushed with the restrict file size hook in place and excluding LFS files, a large amount of heap space is consumed.

      This is due to use checking the file content to see if it's an LFS file.

      We should instead read the file in line by line instead to see if it's an LFS file.

        Attachments

          Structure

            Activity

              People

              Assignee:
              amarkham Adam Markham
              Reporter:
              amarkham Adam Markham
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Structure Helper Panel