1. Rebuild metadata of a large yum repo where the rebuild takes many seconds or minutes.
2. A yum build may request the repomd.xml file and then immediately attempt to download the referenced metadata files within it. In that window, the referenced metadata files may be removed by the rebuild, before the client has finished requesting all the files. This causes a 404 and build failure, even though the now deleted metadata files could have referenced rpms which still exist and would have allowed the build to pass.
A customer wrote a groovy script that simulates requesting repomd.xml and primary.xml.gz in a tight loop. During an NXRM yum metadata rebuild, this script will fail with a 404 response for the primary.xml.gz.
Come up with a more tolerant metadata rebuild algorithm that avoids the chances of 404 and build failures.