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 <[email protected]> Author: vignesh C <[email protected]> Reviewed-by: Zhijie Hou <[email protected]> Reviewed-by: Dilip Kumar <[email protected]> Reviewed-by: Ajin Cherian <[email protected]> Reviewed-by: Takeshi Ideriha <[email protected]> Reviewed-by: Amit Kapila <[email protected]> Discussion: https://postgr.es/m/CALDaNm0SSCS5EJ_KNXau_3iCr_KrpKth=ZrTeOf1DCFbE=3=9...@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(-)
