From 36f21a963ec1b4d33f7bb8fd14694af161582bab Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Thu, 22 Apr 2021 17:35:26 +0300 Subject: [PATCH] [Issue #369] add elog message about failure of obtaining history file via replication protocol --- src/backup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backup.c b/src/backup.c index 112d8b36..ce8e5122 100644 --- a/src/backup.c +++ b/src/backup.c @@ -161,14 +161,17 @@ do_backup_instance(PGconn *backup_conn, PGNodeInfo *nodeInfo, bool no_sync, bool if (prev_backup == NULL) { /* try to setup multi-timeline backup chain */ - elog(WARNING, "Valid backup on current timeline %u is not found, " + elog(WARNING, "Valid full backup on current timeline %u is not found, " "trying to look up on previous timelines", current.tli); tli_list = get_history_streaming(&instance_config.conn_opt, current.tli, backup_list); if (!tli_list) + { + elog(WARNING, "Failed to obtain current timeline history file via replication protocol"); /* fallback to using archive */ tli_list = catalog_get_timelines(&instance_config); + } if (parray_num(tli_list) == 0) elog(WARNING, "Cannot find valid backup on previous timelines, "