Skip to content

Commit

Permalink
Stats on abort
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
  • Loading branch information
richardkchapman committed Nov 1, 2023
1 parent 910338f commit 72285b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roxie/ccd/ccdactivities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,12 @@ class CRoxieAgentActivity : implements CInterfaceOf<IRoxieAgentActivity>, implem

virtual void abort()
{
if (doTrace(traceRoxiePackets))
if (doTrace(traceRoxiePackets) || doTrace(traceAborts))
{
StringBuffer s;
StringBuffer statsStr;
logctx.CTXLOG("Aborting running activity: %s", packet->queryHeader().toString(s).str());
logctx.CTXLOG("Aborted after processing: %s", logctx.queryStats().toStr(statsStr).str());
}
aborted = true;
logctx.abort();
Expand Down
2 changes: 2 additions & 0 deletions system/jlib/jtrace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ constexpr TraceFlags traceRoxiePrewarm = TraceFlags::flag25;
constexpr TraceFlags traceMissingOptFiles = TraceFlags::flag26;
constexpr TraceFlags traceAffinity = TraceFlags::flag27;
constexpr TraceFlags traceSmartStepping = TraceFlags::flag28;
constexpr TraceFlags traceAborts = TraceFlags::flag29;



Expand Down Expand Up @@ -202,6 +203,7 @@ constexpr std::initializer_list<TraceOption> roxieTraceOptions
TRACEOPT(traceMissingOptFiles),
TRACEOPT(traceAffinity),
TRACEOPT(traceSmartStepping),
TRACEOPT(traceAborts),
};

interface IPropertyTree;
Expand Down

0 comments on commit 72285b5

Please sign in to comment.