MySQL Forums
Forum List  »  Install & Repo

Inconsistent SRPM index from certain edge servers
Posted by: Takuya Kodama
Date: April 22, 2025 02:03AM

## What I wanted to achieve

I need to fetch the latest version of the RPM packages provided by repo.mysql.com. In other words, I want a reliable method to retrieve up‑to‑date package information rather than an outdated, edge‑cached directory listing.

## The problem I faced

Depending on which edge server handles the request, I sometimes receive an old index that does not include the newest release. For example, I expected to see mysql-community-8.0.42-1.el9, but when resolving to the edge at 23.47.146.211, it was missing:

```console
$ curl --resolve repo.mysql.com:443:23.47.146.211 \
https://repo.mysql.com/yum/mysql-8.0-community/el/9/SRPMS/


<IMG SRC="/icons/generic.gif" ALT="[FILE]">
<A HREF="mysql-community-8.0.41-1.el9.src.rpm">…mysql-community-8.0.41…</A>

</PRE><HR>
```

By contrast, another edge server (23.42.111.211) does list the latest package:

```console
$ curl --resolve repo.mysql.com:443:23.42.111.211 \
https://repo.mysql.com/yum/mysql-8.0-community/el/9/SRPMS/


<IMG SRC="/icons/generic.gif" ALT="[FILE]">
<A HREF="mysql-community-8.0.42-1.el9.src.rpm">…mysql-community-8.0.42…</A>

</PRE><HR>
```

## Steps I have tried

Assuming Akamai is in use, I added a timestamp query parameter for cache busting and confirmed that appending ?ts=<random> forces the edge to fetch the latest index.
ref: https://techdocs.akamai.com/api-definitions/docs/caching#cache-key-query-parameters

```console
$ curl https://repo.mysql.com/yum/mysql-8.0-community/el/9/SRPMS?ts=$(date +%s)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<IMG SRC="/icons/generic.gif" ALT="[FILE]">
<A HREF="SRPMS/mysql-community-8.0.42-1.el9.src.rpm">mysql-community-8.0.42-1.el9.src.rpm</A>

</PRE><HR>
```

## Request for help

Is there a more robust or officially recommended approach to ensure that I always retrieve the freshest SRPM list from all edge servers?

Options: ReplyQuote


Subject
Written By
Posted
Inconsistent SRPM index from certain edge servers
April 22, 2025 02:03AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.