Symptoms: Apt-get clients time out or perform poorly when attempting to update against a virtual Debian repository
Steps to reproduce:
- Create a Debian Remote repository going to http://archive.ubuntu.com/ubuntu/
- Create a Debian Virtual repository containing only the above Debian Remote repository
- Attempt to download the "debian-virtual/dists/xenial/main/binary-amd64/Release" file
- Observe that the request takes a very long time to complete:
2019-04-25 23:56:12 | 40276 (40 seconds) |REQUEST|188.8.131.52|admin|GET|/debian-virtual/dists/xenial/main/binary-amd64/Release|HTTP/1.1|200| 96 (Bytes)
2019-04-25 23:57:16 | 34 (Milliseconds) |REQUEST|184.108.40.206|admin|GET|/deb-remote/dists/xenial/main/binary-amd64/Release|HTTP/1.1|200| 96
The request appears to "hang" for several seconds, up to a few minutes, before the Release file is served. The actual file download only takes a few milliseconds.
Zapping the virtual and remote caches and modifying the Metadata Retrieval Cache Period all do not have an effect on this problem.
Multiple downloads of the same file return in around the same, slow time.
Using a Generic Virtual with the same remote repository serves the metadata quickly. Using the remote directly serves the metadata quickly as well. Neither are truly effective workarounds as they invalidate the point of a Debian Virtual repository.
This issue means users will be discouraged from using the new Debian Virtual repositories which are a major feature in Artifactory.