On Tue, Jan 18, 2022 at 09:50:44PM +0100, Jan Engelhardt <jengelh@inai.de> wrote:
I guess it's possible. Even though createrepo creates repomd.xml last, rsyncing the repodata/ directory to mirrors could happen in arbitrary order, therefore sending repomd.xml before f4fba..-primary.xml.gz.
I was pointed to the mirror hypothesis (in a personal conversation) too. So createrepo is likely safe but there's a missing "mirrorrepo". I've found these instructions [1] and they suggest a "plain" rsync call. Would it make sense to adjust the command to include `--delay-updates`? (First idea after reading rsync(1) section "Sorted transfer order". This won't close the race window but hopefully narrows it substantially. Second would be the explicit file list with referencer coming after referencees.) Michal [1] https://en.opensuse.org/openSUSE:Mirror_howto#Walk-through