Skip to content

Sometimes object storage migration doesn't clean up source files in file storage

Problem

It seems there is a race condition that local files are not removed properly after it's uploaded to object storage.

At the moment, we don't have any clues how this happens. From my assumption, even if sidekiq runs concurrently, the second request should be blocked by the exclusive lease.

/cc @mbergeron @ayufan @ahanselka

Proposal

We prepare a rake task to clean up the duplicated files.

Edited by Shinya Maeda