Skip to content

Hashed Storage Migration: Handle failed attachment migrations with existing target path

What does this MR do?

There are few cases were the migration could fail due to a racing condition, in which the uploader creates temporary folders on the new hashed directory, before we migrate the files.

This is a workaround to that situation, which allow us to ignore the temporary folder structure when it is completely empty. We will move the folder to a backup one in order to cleanup the space, but will not remove in order to prevent data-loss.

Does this MR meet the acceptance criteria?

Conformity

Closes #32367 (closed)

Edited by Gabriel Mazetto

Merge request reports