• Stan Hu's avatar
    Time limit database lock when rebasing a merge request · cce486da
    Stan Hu authored
    `MergeRequest#rebase_async` can lock indefinitely with a SELECT FOR
    UPDATE call. If an update is idle in transaction or another rebase
    attempts to run, `MergeRequest#rebase_async` could queue indefinitely or
    until statement timeouts are triggered.
    
    To limit the impact of this operation, we now just bail out after 5 s if
    we can't get the lock. The user will see an error message if this
    happens.
    
    Part of https://gitlab.com/gitlab-org/gitlab/issues/30528
    cce486da
This project manages its dependencies using Bundler. Learn more
Gemfile 10.9 KB