Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.6.x' into candidate-…
Browse files Browse the repository at this point in the history
…9.8.x

Signed-off-by: Gordon Smith <[email protected]>

# Conflicts:
#	helm/hpcc/Chart.yaml
#	helm/hpcc/templates/_helpers.tpl
#	version.cmake
  • Loading branch information
GordonSmith committed Aug 8, 2024
2 parents d36b2fd + 396baeb commit 4b02040
Show file tree
Hide file tree
Showing 38 changed files with 627 additions and 365 deletions.
2 changes: 2 additions & 0 deletions ecl/eclagent/eclagent.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ public:

void ready();
void execute() { if (!alreadyUpdated) activity->execute(); }
void onStart(const byte * parentExtract, CHThorDebugContext * debugContext);
void stop() { if (!alreadyUpdated) activity->stop(); }

IHThorException * makeWrappedException(IException * e);
Expand Down Expand Up @@ -829,6 +830,7 @@ public:
CICopyArrayOf<EclGraphElement> dependentOnActivity;
IntArray dependentControlId;
IProbeManager * probeManager;
const byte * savedParentExtract = nullptr;

Owned<EclBoundLoopGraph> loopGraph;
};
Expand Down
32 changes: 19 additions & 13 deletions ecl/eclagent/eclgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,24 @@ void EclGraphElement::ready()
activity->ready();
}

void EclGraphElement::onStart(const byte * parentExtract, CHThorDebugContext * debugContext)
{
savedParentExtract = parentExtract;
if (arg)
{
try
{
arg->onStart(parentExtract, NULL);
}
catch(IException * e)
{
if (debugContext)
debugContext->checkBreakpoint(DebugStateException, NULL, e);
throw makeWrappedException(e);
}
}
}

IHThorException * EclGraphElement::makeWrappedException(IException * e)
{
throw makeHThorException(kind, id, subgraph->id, e);
Expand Down Expand Up @@ -962,19 +980,7 @@ void EclSubGraph::doExecute(const byte * parentExtract, bool checkDependencies)
ForEachItemIn(idx, elements)
{
EclGraphElement & cur = elements.item(idx);
if (cur.arg)
{
try
{
cur.arg->onStart(parentExtract, NULL);
}
catch(IException * e)
{
if (debugContext)
debugContext->checkBreakpoint(DebugStateException, NULL, e);
throw cur.makeWrappedException(e);
}
}
cur.onStart(parentExtract, debugContext);
}

ForEachItemIn(ir, sinks)
Expand Down
8 changes: 4 additions & 4 deletions ecl/hthor/hthor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6719,13 +6719,13 @@ CHThorWhenActionActivity::CHThorWhenActionActivity(IAgentContext &_agent, unsign
void CHThorWhenActionActivity::ready()
{
CHThorSimpleActivityBase::ready();
graphElement->executeDependentActions(agent, NULL, WhenBeforeId);
graphElement->executeDependentActions(agent, NULL, WhenParallelId);
graphElement->executeDependentActions(agent, graphElement->savedParentExtract, WhenBeforeId);
graphElement->executeDependentActions(agent, graphElement->savedParentExtract, WhenParallelId);
}

void CHThorWhenActionActivity::execute()
{
graphElement->executeDependentActions(agent, NULL, 1);
graphElement->executeDependentActions(agent, graphElement->savedParentExtract, 1);
}

const void * CHThorWhenActionActivity::nextRow()
Expand All @@ -6735,7 +6735,7 @@ const void * CHThorWhenActionActivity::nextRow()

void CHThorWhenActionActivity::stop()
{
graphElement->executeDependentActions(agent, NULL, WhenSuccessId);
graphElement->executeDependentActions(agent, graphElement->savedParentExtract, WhenSuccessId);
CHThorSimpleActivityBase::stop();
}

Expand Down
3 changes: 2 additions & 1 deletion esp/scm/ws_logaccess.ecm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ ESPenum LogColumnValueType : string
str("string"),
numeric("numeric"),
datetime("datetime"),
enum("enum")
enum("enum"),
epoch("epoch")
};

ESPStruct [nil_remove] LogColumn
Expand Down
4 changes: 4 additions & 0 deletions esp/services/ws_logaccess/WsLogAccessService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ bool Cws_logaccessEx::onGetLogAccessInfo(IEspContext &context, IEspGetLogAccessI
WARNLOG("Invalid col type found in logaccess logmap config");
}
}
else
{
espLogColumn->setColumnType("string");
}
logColumns.append(*espLogColumn.getClear());
}
else
Expand Down
Loading

0 comments on commit 4b02040

Please sign in to comment.