Skip to content

Geo - Secondary tries to download a file indefinitely when sync object storage is enabled but object storage is disabled for data type

Summary

Geo secondary nodes try to download a file indefinitely when syncing object storage is enabled, but the object storage is disabled for data type on the secondary node. The same bug happens when we try to remove the file using the Geo::FileRegistryRemovalWorker.

Steps to reproduce

  1. Enable Object Storage for LFS Objects only on the primary node

  2. Enable Allow this secondary node to replicate content on Object Storage for the secondary node

  3. Push a new LFS file to a repository on the primary node

  4. Visit the Admin Area -> Monitoring -> Background Jobs -> Retries

    Screenshot_2020-06-01_17.57.15

What is the expected correct behavior?

The Geo secondary node should skip the transfer when it is not allowed to replicate content on Object Storage or is not configured to store the data type on Object Storage.