On Wednesday 2022-01-19 08:45, Michal Koutný wrote:
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.
Would it make sense to adjust the command to include `--delay-updates`?
As the manpage says, that still isn't atomic (and that is a bug of rsync). To get real atomic updates, rsync on the receive side would have to do the equivalent of `cp -al` of the entire hierarchy to a temp dir first, then perform the synchronization as usual, and then it could do an atomic rename of the temp directory with the renameat2(RENAME_EXCHANGE) syscall). Let's see if they will ever do it.