Skip to content

Commit

Permalink
Ensure zero lag after timescale installation, increase num of tail li…
Browse files Browse the repository at this point in the history
…nes for pg log
  • Loading branch information
hughcapet committed Nov 12, 2023
1 parent d18619b commit a28fdfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-appliance/bootstrap/maybe_pg_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def tail_postgres_log(weekday):
logdir = os.environ.get('PGLOG', '/home/postgres/pgdata/pgroot/pg_log')
logfile = os.path.join(logdir, 'postgresql-{0}.csv'.format(weekday))
return subprocess.check_output(['tail', '-n5', logfile]).decode('utf-8')
return subprocess.check_output(['tail', '-n35', logfile]).decode('utf-8')


def tail_postgres_logs():
Expand Down
1 change: 1 addition & 0 deletions postgres-appliance/tests/test_spilo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ function test_spilo() {
drop_table_with_oids "$container"

log_info "[TS1] Testing in-place major upgrade 11->12"
wait_zero_lag "$container"
run_test test_successful_inplace_upgrade_to_12 "$container"
wait_all_streaming "$container"
run_test test_envdir_updated_to_x 12
Expand Down

0 comments on commit a28fdfa

Please sign in to comment.