-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archiver service bails when archiver is off #358
Comments
I haven't looked at the code, but couldn't you get the same problem if the archiver were still on, failing for some time and then someone had the great idea to remove oldest (and unarchived) WALs to avoid disk saturation? |
Of course, it could happen but then the archiver should still be on. And thus, it must bail. I don't want to skip this check if archiver is on, but skip this if archiver is off. Do you think it's a problem ? |
The check fails on the call to pg_stat_file. The issue can be addressed in the query this way :
The parameter value of archiver_mode must also be retrieved, to adapt the output message for this particular case. |
oh sorry, I misunderstood your first message and thought that the check itself would error out rather than returning a regular ERROR status. I'm fine with your approach. |
No worry, that makes things clear for everyone. I'll propose a fix soon. |
Hello, |
Hello,
I didn't spot this until now. The archiver service bails out when an instance once had WAL archiving active, then being turned off.
The following error is displayed :
ERROR: could not stat file "pg_wal/0000000100000001000000DE": No such file or directory
pg_stat_archiver shows :
The db was loaded a few hours ago and now current LSN is :
So, we should probably check if archiver is on before checking files.
We'll try to address this issue ASAP.
The text was updated successfully, but these errors were encountered: