Re: archives frequently do not load today's messages

Поиск
Список
Период
Сортировка
Искать

Re: archives frequently do not load today's messages

От:
Magnus Hagander <magnus@hagander.net>
Дата:
Вложения:
On Wed, 2 Sept 2026 at 21:47, Nathan Bossart <nathandbossart@gmail.com> wrote:
I've been noticing $subject for a while.  For example, navigating to
today's messages for pgsql-hackers@ [0] intermittently shows me nothing for
long stretches of time.  My suspicion is that this has something to do with
the increased cache time patch committed back in March [1].

[0] https://www.postgresql.org/list/pgsql-hackers/since/202609020000/
[1] https://git.postgresql.org/gitweb/?p=pgarchives.git;a=commitdiff;h=c151a8

You're on the right track, but that's not the actual bug. But the increasing of the cache time has exposed a bug that has been there all along.

The bug is that *someone* hits the URL, in this case for Sep 2, when there are zero messages from Sep 2 yet. When that happens the empty page is cached but it's cached *without* the key that say it's in September. So when the first Sep 2 message actually arrives, it failes to to purge it because it purges everything in September only. Not in NULL. 


It will take up to 12 hours for all the incorrectly taggred pages to expire from the cache.

Thanks for the report!

--
FAQ