Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8649

Slow performance when rendering comments which contain a large number of commit hashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 4.8.0
    • 3.11.4
    • None

    Description

      Summary

      Loading a Pull Request activity screen fails to load and produces an error when the customer has large comments added that contain a hexadecimal number between 7 and 40 characters. Even if the comment is contained within a code-block.

      This is further exacerbated if the repository contains a large number of commits. This can cause the database to spike in an attempt to search for and link the 'commit like' characters ultimately taking longer than 60 seconds to process causing the frontend JS to time out.

      Steps to Reproduce

      1. Produce large comments that contain 'commit-like' hexadecimal characters wrapped within a code-block.
      2. Repository with large commit history

      Expected Results

      The comments are loaded with no issue. Commit hashes are linked appropriately.

      Actual Results

      The user receives the following error withing the UI:

      Server Unreachable 
      The server didn't respond. You may retry your request when the server comes back up.
      

      Workaround

      No workaround at this time.

      Attachments

        Issue Links

          Activity

            People

              mszczepanski Marcin
              mwilliams@atlassian.com Mark A.
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: