Raises an error on migration exhaustion

What does this MR do and why?

Raises an exhaustion error when lock is not acquired when running migrations

Related to #480062 (closed)

Merge request reports

Loading