Skip to content

Bitbucket Server importer: Eliminate most idle-in-transaction issues

Stan Hu requested to merge sh-insert-git-data-in-separate-transaction into master

Just like with the GitHub importer, the Bitbucket Server importer can hit PostgreSQL 60 s idle-in-transaction timeouts if it takes too long to create the merge request. We solve this by using the same approach as the GitHub importer:

  1. Bypass all validation and hooks in creating a merge request
  2. Insert the Git data in a separate transaction

Part of #50021 (moved)

Merge request reports