| From: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | Daniel Gustafsson <daniel(at)yesql(dot)se>, Noah Misch <noah(at)leadboat(dot)com> |
| Subject: | 003_standby_restarts.pl fails on thorntail due to sparc-linux-ext4-specific bug |
| Date: | 2026-12-05 16:00:00 |
| Message-ID: | 52463778-7d81-43e1-9e7f-eff816614885@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello hackers,
Buildfarm animal thorntail, apparently suffering from a file system bug
reported 3 years ago, fails test_checksums/003_standby_restarts.pl from
time to time. For example, a recent failure [2]:
[11:28:51.933](0.311s) ok 6 - ensure data checksums are transitioned to on on standby_restarts_primary
[13:50:33.094](8501.161s) # poll_query_until timed out executing this query:
# SELECT setting FROM pg_catalog.pg_settings WHERE name = 'data_checksums';
# expecting this output:
# on
# last actual query output:
# inprogress-on
# with stderr:
[13:50:33.096](0.003s) not ok 7 - ensure data checksums are transitioned to on on standby_restarts_standby
[13:50:33.097](0.001s)
[13:50:33.097](0.000s) # Failed test 'ensure data checksums are transitioned to on on standby_restarts_standby'
# at /home/nm/farm/sparc64_deb10_gcc_64_ubsan/HEAD/pgsql/src/test/modules/test_checksums/t/DataChecksums/Utils.pm line 94.
[13:50:33.097](0.000s) # got: '0'
# expected: '1'
003_standby_restarts_standby_restarts_standby.log contains:
2026-12-04 11:28:51.789 MSK [3597537:7] LOG: incorrect resource manager data checksum in record at 0/04884F20
...
2026-12-04 15:54:52.677 MSK [3597537:63635] LOG: waiting for WAL to become available at 0/04002000
2026-12-04 15:54:53.026 MSK [3597532:4] LOG: received immediate shutdown request
It spend 3+ hours waiting for standby start, then the test failed.
Compare with the previous (successful) run [3]:
[13:21:05.624](7343.659s) # poll_query_until timed out executing this query:
# SELECT '0/088F7010' <= replay_lsn AND state = 'streaming'
# FROM pg_catalog.pg_stat_replication
# WHERE application_name IN ('standby_restarts_standby', 'walreceiver')
# expecting this output:
# t
# last actual query output:
#
# with stderr:
# Running: df -x ext4 /home/nm/farm/sparc64_deb10_gcc_64_ubsan/HEAD/pgsql.build/src/test/modules/test_checksums/tmp_check
[13:21:05.636](0.012s) ok 27 - dummy test before skip for filesystem bug
skip rest: timed out waiting for catchup & filesystem bug at t/003_standby_restarts.pl line 265.
[13:21:05.639](0.002s) 1..27
Note the duration: 7343.659s.
This run doesn't have standby's log stored, but it looks like the test can
tolerate the bug when it's triggered inside:
sub wait_for_catchup
{
...
if (!$self->poll_query_until('postgres', $query))
{
if (PostgreSQL::Test::Utils::has_wal_read_bug)
{
...
but not inside:
sub wait_for_checksum_state
{
...
my $res = $postgresnode->poll_query_until(
'postgres',
"SELECT setting FROM pg_catalog.pg_settings WHERE name = 'data_checksums';",
$state);
...
On the other hand, waiting for 2+ hours before swallowing the error maybe
is not normal anyway.
[1] https://www.postgresql.org/message-id/20220304014139.GB296912%40rfd.leadboat.com
[2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=thorntail&dt=2026-12-04%2006%3A31%3A03
[3]
https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=thorntail&dt=2026-12-03%2006%3A31%3A03&stg=module-test_checksums-check
Best regards,
Alexander
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shihao zhong | 2026-12-05 16:14:10 | Re: Compute the distance between a point and a box exactly |
| Previous Message | shihao zhong | 2026-12-05 15:55:25 | Re: Printing backtrace of postgres processes |