Skip to content

Commit

Permalink
HPCC-33135 Improve error reporting when pulling roxie stats for graph
Browse files Browse the repository at this point in the history
Foremost this will improve error reporting when pulling runtime roxie stats,
but it will also affect any other ESP methods sending roxie control messages
that had an exception return.

Look for and propagate roxie control responses that consist of an Exception.
Previously exceptions were only propagated when they were children of
Endpoint elements in the control message response.

Signed-off-by: Terrence Asselin <[email protected]>
  • Loading branch information
asselitx committed Jan 10, 2025
1 parent 0bb5480 commit cf7d06f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esp/clients/roxiecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ static void checkRoxieControlExceptions(IPropertyTree *response)
me->append(*MakeStringException(ex.getPropInt("Code"), "Endpoint %s: %s", endp.queryProp("@ep"), ex.queryProp("Message")));
}
}

if( strieq("Exception", response->queryName()))
me->append(*MakeStringException(response->getPropInt("Code"), "Source %s: %s", response->queryProp("Source"), response->queryProp("Message")));

if (me->ordinality())
throw me.getClear();
}
Expand Down

0 comments on commit cf7d06f

Please sign in to comment.