pgsql: Simplify leader error reporting for parallel apply worker failur

Поиск
Список
Период
Сортировка
Искать

pgsql: Simplify leader error reporting for parallel apply worker failur

От:
Amit Kapila <akapila@postgresql.org>
Дата:
Simplify leader error reporting for parallel apply worker failures.

When a parallel apply worker failed, the leader copied the worker's error
context into its own error and appended the context of whatever it was
applying at that moment. The failed transaction was thus logged twice,
and the log read as if both contexts belonged to the same transaction.

The worker has already logged its error with the context of the failed
transaction. Have the leader report only that the worker exited due to an
error, using its own error context.

Author: Hayato Kuroda 
Author: vignesh C 
Reviewed-by: Zhijie Hou 
Reviewed-by: Dilip Kumar 
Reviewed-by: Ajin Cherian 
Reviewed-by: Takeshi Ideriha 
Reviewed-by: Amit Kapila 
Discussion: https://postgr.es/m/CALDaNm0SSCS5EJ_KNXau_3iCr_KrpKth=ZrTeOf1DCFbE=3=9w@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/952bab8b74d40fcfd25e1949865c3907e676504e

Modified Files
--------------
.../replication/logical/applyparallelworker.c      | 46 +++++++---------------
1 file changed, 15 insertions(+), 31 deletions(-)

FAQ