pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14806: WAL replay on standby: could not link file "pg_xlog/...4C" to "pg_xlog/...D1": File exists
2+ messages / 2 participants
[nested] [flat]
* BUG #14806: WAL replay on standby: could not link file "pg_xlog/...4C" to "pg_xlog/...D1": File exists
@ 2017-09-08 11:58 email@piotr-stefaniak.me
0 siblings, 1 reply; 2+ messages in thread
From: email@piotr-stefaniak.me @ 2017-09-08 11:58 UTC (permalink / raw)
To: pgsql-bugs; +Cc: email@piotr-stefaniak.me
The following bug has been logged on the website:
Bug reference: 14806
Logged by: Piotr Stefaniak
Email address: email@piotr-stefaniak.me
PostgreSQL version: 9.4.13
Operating system: FreeBSD 10.3
Description:
We have an archive-only replicating standby. During intensive WAL replay, it
sometimes happens that the standby will say "58P02: could not link file
"pg_xlog/[...]" to "pg_xlog/[...]": File exists" as in the example below. It
looks like some kind of race condition. I'm pretty convinced that nothing,
except the standby itself, is modifying the contents of pg_xlog when it
happens (or anytime else). log_line_prefix is '%t [%p]: [%l] %d %h %u '.
2017-08-25 22:12:08 CEST [30660]: [4873] LOG: 00000: restored log file
"0000000100001560000000D0" from archive
2017-08-25 22:12:08 CEST [30660]: [4874] LOCATION: RestoreArchivedFile,
xlogarchive.c:254
2017-08-25 22:12:08 CEST [30660]: [4875] DEBUG: 00000: got WAL segment
from archive
2017-08-25 22:12:08 CEST [30660]: [4876] LOCATION: XLogFileReadAnyTLI,
xlog.c:3594
2017-08-25 22:12:09 CEST [30660]: [4877] LOG: 00000: restored log file
"0000000100001560000000D1" from archive
2017-08-25 22:12:09 CEST [30660]: [4878] LOCATION: RestoreArchivedFile,
xlogarchive.c:254
2017-08-25 22:12:09 CEST [30923]: [7638] DEBUG: 00000: attempting to
remove WAL segments older than log file 000000000000155D00000071
2017-08-25 22:12:09 CEST [30923]: [7639] LOCATION: RemoveOldXlogFiles,
xlog.c:3778
2017-08-25 22:12:09 CEST [30660]: [4879] DEBUG: 00000: got WAL segment
from archive
2017-08-25 22:12:09 CEST [30660]: [4880] LOCATION: XLogFileReadAnyTLI,
xlog.c:3594
2017-08-25 22:12:09 CEST [30923]: [7640] LOG: 58P02: could not link file
"pg_xlog/000000010000155C0000004C" to "pg_xlog/0000000100001560000000D1":
File exists
2017-08-25 22:12:09 CEST [30923]: [7641] LOCATION:
durable_link_or_rename, fd.c:541
2017-08-25 22:12:09 CEST [30923]: [7642] DEBUG: 00000: removing
transaction log file "000000010000155C0000004C"
2017-08-25 22:12:09 CEST [30923]: [7643] LOCATION: RemoveXlogFile,
xlog.c:3864
2017-08-25 22:12:09 CEST [30923]: [7644] DEBUG: 00000: recycled
transaction log file "000000010000155C0000004D"
2017-08-25 22:12:09 CEST [30923]: [7645] LOCATION: RemoveXlogFile,
xlog.c:3849
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14806: WAL replay on standby: could not link file "pg_xlog/...4C" to "pg_xlog/...D1": File exists
@ 2017-09-08 14:24 Tom Lane <tgl@sss.pgh.pa.us>
parent: email@piotr-stefaniak.me
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2017-09-08 14:24 UTC (permalink / raw)
To: email@piotr-stefaniak.me; +Cc: pgsql-bugs
email@piotr-stefaniak.me writes:
> We have an archive-only replicating standby. During intensive WAL replay, it
> sometimes happens that the standby will say "58P02: could not link file
> "pg_xlog/[...]" to "pg_xlog/[...]": File exists" as in the example below. It
> looks like some kind of race condition.
This is normal I believe; in any case it looks pretty harmless, since
RemoveXlogFile will just remove the file if it fails to recycle it
as a future xlog segment.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-09-08 14:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-08 11:58 BUG #14806: WAL replay on standby: could not link file "pg_xlog/...4C" to "pg_xlog/...D1": File exists email@piotr-stefaniak.me
2017-09-08 14:24 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox