Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-4354

Database on high load extremly bugly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Duplicate
    • 2.10.1
    • None
    • None
    • None

    Description

      Since Stash instance is under 500 users load, with ~1500 repos, in some of them over 10000 pull requests — database engine (Hibernate, i suppose) sometime is locked and fires an error.

      For example, you merge pull request, it is merged success, but Activity failed to add into database and pull request has no Activity records that it was merged. Missed link to merge commit. Etc.

      The same is for comments.

      Will be nice to have spinlock in this place, to lock UI until database was released and update can be performed success. Do not stop trying if only error occurs once. Try again and again. Spin lock

      Maybe some timeout really usefull in this situation, to avoid locking entire application to some reason. Bu, i think, that 99% problems will be solved by simple spinlocking for a twice loop step.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              3652ed9ede2e Alexey Efimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: