Skip to content

Commit

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

Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Dec 19, 2023
2 parents bac2dae + 08fc9a9 commit c3e6871
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions helm/hpcc/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ Add ConfigMap volume mount for a component
mountPath: /tmp
- name: {{ .name }}-hpcctmp-volume
mountPath: /var/lib/HPCCSystems
{{- if .tmpSubPath }}
subPath: {{ .tmpSubPath | quote }}
{{- end }}
- name: {{ .name }}-configmap-volume
mountPath: /etc/config
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion helm/hpcc/templates/thor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ data:
{{ include "hpcc.mergeEnvironments" $configCtx.me.env | indent 12 }}
workingDir: /var/lib/HPCCSystems
volumeMounts:
{{ include "hpcc.addConfigMapVolumeMount" $configCtx.me | indent 12 }}
{{ include "hpcc.addConfigMapVolumeMount" (deepCopy $configCtx.me | merge (dict "tmpSubPath" $containerNum)) | indent 12 }}
{{ include "hpcc.addVolumeMounts" $configCtx | indent 12 }}
{{ include "hpcc.addSecretVolumeMounts" $configCtx | indent 12 }}
{{ include "hpcc.addVaultClientCertificateVolumeMounts" $configCtx | indent 12 }}
Expand Down
19 changes: 12 additions & 7 deletions thorlcr/master/thmastermain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1163,18 +1163,23 @@ int main( int argc, const char *argv[] )
}
if (isContainerized())
{
int retCode = exception ? TEC_Exception : 0;
if (!cloudJobName.isEmpty())
{
if (exception)
{
Owned<IWorkUnitFactory> factory = getWorkUnitFactory();
Owned<IConstWorkUnit> wu = factory->openWorkUnit(workunit);
if (wu)
{
relayWuidException(wu, exception);
retCode = 0; // if successfully reported, suppress thormanager exit failure that would trigger another exception
}
}
if (workerJobInstalled)
{
try
{
if (exception)
{
Owned<IWorkUnitFactory> factory = getWorkUnitFactory();
Owned<IConstWorkUnit> wu = factory->openWorkUnit(workunit);
relayWuidException(wu, exception);
}
k8s::KeepJobs keepJob = k8s::translateKeepJobs(globals->queryProp("@keepJobs"));
switch (keepJob)
{
Expand Down Expand Up @@ -1209,7 +1214,7 @@ int main( int argc, const char *argv[] )
}
}
}
setExitCode(exception ? TEC_Exception : 0);
setExitCode(retCode);
}

// cleanup handler to be sure we end
Expand Down

0 comments on commit c3e6871

Please sign in to comment.