When attempting to share/migrate to/from a collection it's possible to trigger an infinite batch when there's no children present in the tableselect.
Go to a collection without children.
Click share or migrate all objects.
Batch triggers that does not end.
Post pull request, validation occurs to not trigger batch.