BUG #16154: pg_ctl restart with a logfile fails sometimes (on Windows)

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: exclusion(at)gmail(dot)com
Subject: BUG #16154: pg_ctl restart with a logfile fails sometimes (on Windows)
Date: 2019-12-06 07:00:01
Message-ID: 16154-1ccf0b537b24d5e0@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16154
Logged by: Alexander Lakhin
Email address: exclusion(at)gmail(dot)com
PostgreSQL version: 12.1
Operating system: Windows
Description:

When performing regression tests on Windows intermittent failures are
observed, e.g. in src/bin/pg_basebackup test:
vcregress taptest src/bin/pg_basebackup
...
t/010_pg_basebackup.pl ... 10/106 Bailout called. Further testing stopped:
system pg_ctl failed
FAILED--Further testing stopped: system pg_ctl failed

regress_log_010_pg_basebackup.log contains:
...
ok 13 - backup directory was created and left behind
### Restarting node "main"
# Running: pg_ctl -D
C:/src/postgresql/src/bin/pg_basebackup/tmp_check/t_010_pg_basebackup_main_data/pgdata
-l
C:/src/postgresql/src/bin/pg_basebackup/tmp_check/log/010_pg_basebackup_main.log
restart
waiting for server to shut down.... done
server stopped
waiting for server to start....The process cannot access the file because it
is being used by another process.
stopped waiting
pg_ctl: could not start server
Examine the log output.
Bail out! system pg_ctl failed

The issue is caused by sporadic "pg_ctl ... restart -l logfile" failures.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message RideNext 2019-12-06 07:34:13 RE: Postgres takes more than 6 minutes to come up during host/standby switch over
Previous Message MOHAN KUMAR DORAIRAJ 2019-12-06 03:34:23 Re: BUG #16145: Not able to terminate active session