diff --git a/src/backend/distributed/executor/multi_router_executor.c b/src/backend/distributed/executor/multi_router_executor.c index 8aeae4648..4acda6ff8 100644 --- a/src/backend/distributed/executor/multi_router_executor.c +++ b/src/backend/distributed/executor/multi_router_executor.c @@ -1141,8 +1141,11 @@ ExecuteModifyTasks(List *taskList, bool expectResults, ParamListInfo paramListIn ¤tAffectedTupleCount); } - /* should have rolled back on error */ - Assert(queryOK); + /* We error out if the worker fails to return a result for the query. */ + if (!queryOK) + { + ReportConnectionError(connection, ERROR); + } if (placementIndex == 0) {