Re: BF mamba failure
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Kouber Saparev <kouber@gmail.com>
Cc: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-09-10T23:28:35Z
Lists: pgsql-hackers
On Tue, Sep 09, 2025 at 04:07:45PM +0300, Kouber Saparev wrote: > Yet again one of our replicas died. Should I file a bug report or > something, what should we do in order to prevent it? Restart the database > every month/week or so?... I don't think we need another bug to report the same problem. We are aware that this may be an issue and that it is hard to track, the problem is to find room to be able to investigate it, at this stage. I may be able to come back to it soon-ishly, looking at how to trigger any race condition. The difficulty is to think how the current code is able to reach this state, because we have a race condition at hand in standbys. As a start, are these failures only in the startup process? Has the startup process reached a consistent state when the problem happens because the replay code is too eager at removing the stats entries? Has it not reached a consistent state. These could be useful hints to extract a reproducible test case, looking for common patterns. I'll ask around if I have seen cases like that in the user pool I have an access to. -- Michael
Commits
-
Add information about "generation" when dropping twice pgstats entry
- 769be67a3c7a 15.14 landed
- f770006928d0 16.10 landed
- bdda6ba30cbe 17.6 landed
- ab74ce4dc909 18.0 landed
- 84b32fd22830 19 (unreleased) landed
-
Fix race conditions with drop of reused pgstats entries
- 154c5b42a3d8 15.10 landed
- afa20845dd13 16.6 landed
- 1d6a03ea4146 17.2 landed
- 818119afccd3 18.0 landed