From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
Cc: | Noah Misch <noah(at)leadboat(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Steve Kehlet <steve(dot)kehlet(at)gmail(dot)com>, Forums postgresql <pgsql-general(at)postgresql(dot)org>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1 |
Date: | 2015-06-16 18:58:44 |
Message-ID: | 20150616185844.GS133018@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Thomas Munro wrote:
> Thanks. As mentioned elsewhere in the thread, I discovered that the
> same problem exists for page boundaries, with a different error
> message. I've tried the attached repro scripts on 9.3.0, 9.3.5, 9.4.1
> and master with the same results:
>
> FATAL: could not access status of transaction 2048
> DETAIL: Could not read from file "pg_multixact/offsets/0000" at
> offset 8192: Undefined error: 0.
>
> FATAL: could not access status of transaction 131072
> DETAIL: Could not open file "pg_multixact/offsets/0002": No such file
> or directory.
So I checked this bug against current master, because it's claimed to be
closed. The first script doesn't emit a message at all; the second
script does emit a message:
LOG: could not truncate directory "pg_multixact/offsets": apparent wraparound
If you start and stop again, there's no more noise in the logs. That's
pretty innocuous -- great.
But then I modified your script to do two segments instead of one. Then
after the second cycle is done, start the server and stop it again. The
end result is a bit surprising: you end up with no files in
pg_multixact/offsets at all!
I applied Andres' patch to WAL-log truncations and rerun the test, and
the files do not automatically disappear anymore. So after that patch
we might be fine, although I'd like to actually understand the failure
mode here to see whether it's actually fixed.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment | Content-Type | Size |
---|---|---|
checkpoint-segment-boundary.sh | application/x-sh | 1.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Frost | 2015-06-16 20:16:22 | Re: [GENERAL] pg_xlog on a hot_standby slave filling up |
Previous Message | Christoph Berg | 2015-06-16 18:35:56 | Re: [GENERAL] pg_xlog on a hot_standby slave filling up |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2015-06-16 19:17:01 | Re: 9.5 release notes |
Previous Message | David Christensen | 2015-06-16 18:25:18 | Re: [PATCH] two-arg current_setting() with fallback |