Skip to content

Commit 6c69419

Browse files
committed
Merge remote-tracking branch 'origin/candidate-9.10.x'
2 parents 6b2b676 + e847a86 commit 6c69419

File tree

78 files changed

+1665
-948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1665
-948
lines changed

.github/workflows/build-gh_runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
for plugin in "${plugins[@]}"; do
209209
rm -f ./build/CMakeCache.txt
210210
rm -rf ./build/CMakeFiles
211-
cmake ${{ !contains(inputs.os, 'windows') && '-G Ninja' || '' }} -S ./${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} -B ./build -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DCONTAINERIZED=${{ inputs.containerized == true && 'ON' || 'OFF' }} -DCPACK_STRIP_FILES=${{ inputs.strip-files == true && 'ON' || 'OFF' }} ${{ inputs.single-package == true && '-DINCLUDE_PLUGINS=ON' || '-D$plugin=ON' }} ${{ inputs.cmake-configuration }} ${{ inputs.cmake-configuration-ex }}
211+
cmake ${{ !contains(inputs.os, 'windows') && '-G Ninja' || '' }} -S ./${{ inputs.ln == true && 'LN' || 'HPCC-Platform' }} -B ./build -DCMAKE_BUILD_TYPE=${{ inputs.build-type }} -DTESTING=ON -DCONTAINERIZED=${{ inputs.containerized == true && 'ON' || 'OFF' }} -DCPACK_STRIP_FILES=${{ inputs.strip-files == true && 'ON' || 'OFF' }} ${{ inputs.single-package == true && '-DINCLUDE_PLUGINS=ON' || '-D$plugin=ON' }} ${{ inputs.cmake-configuration }} ${{ inputs.cmake-configuration-ex }}
212212
cmake --build ./build ${{ contains(inputs.os, 'windows') && '--config RelWithDebInfo' || ''}} --parallel ${{ inputs.upload-package == true && '--target package' || ''}}
213213
done
214214

cmake_modules/commonSetup.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,10 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
746746
add_definitions (-D_CONTAINERIZED)
747747
ENDIF(CONTAINERIZED)
748748

749+
IF (TESTING)
750+
add_definitions (-D_TESTING)
751+
ENDIF(TESTING)
752+
749753
IF (USE_ICU)
750754
find_package(ICU COMPONENTS data i18n io tu uc)
751755
IF (ICU_FOUND)

common/workunit/workunit.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5248,6 +5248,18 @@ IWorkUnit* CWorkUnitFactory::createNamedWorkUnit(const char *wuid, const char *a
52485248
IWorkUnit* ret = &cw->lockRemote(false); // Note - this may throw exception if user does not have rights.
52495249
ret->setDebugValue("CREATED_BY", app, true);
52505250
ret->setDebugValue("CREATED_FOR", scope, true);
5251+
if (secuser)
5252+
{
5253+
//Record employee ids and numbers in the workunit if they are available.
5254+
//Future: This should probably be stored in an un-modifiable attribute and set by setUser()
5255+
const char * id = secuser->getEmployeeID();
5256+
if (!isEmptyString(id))
5257+
ret->setDebugValue("CREATOR_EMPLOYEE_ID", id, true);
5258+
5259+
const char * number = secuser->getEmployeeNumber();
5260+
if (!isEmptyString(number))
5261+
ret->setDebugValue("CREATOR_EMPLOYEE_NUMBER", number, true);
5262+
}
52515263
return ret;
52525264
}
52535265

dali/base/daclient.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "dautils.hpp"
3030

3131
#include "daclient.hpp"
32+
#include "sysinfologger.hpp"
3233

3334
extern bool registerClientProcess(ICommunicator *comm, IGroup *& retcoven,unsigned timeout,DaliClientRole role);
3435
extern void stopClientProcess();
@@ -141,6 +142,9 @@ bool initClientProcess(IGroup *servergrp, DaliClientRole role, unsigned mpport,
141142
covengrp->Release();
142143
queryLogMsgManager()->setSession(myProcessSession());
143144

145+
if (getComponentConfigSP()->getPropBool("logging/@enableGlobalSysLog"))
146+
useDaliForOperatorMessages(true);
147+
144148
if (!isContainerized()) // The Environment is bare-metal only
145149
{
146150
// auto install environment monitor for server roles
@@ -179,6 +183,7 @@ void removeShutdownHook(IDaliClientShutdown &shutdown)
179183

180184
void closedownClientProcess()
181185
{
186+
useDaliForOperatorMessages(false);
182187
if (!daliClientIsActive)
183188
return;
184189
while (shutdownHooks.ordinality())

dali/base/dafdesc.cpp

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3845,40 +3845,67 @@ void disableStoragePlanesDaliUpdates()
38453845

38463846
bool getDefaultStoragePlane(StringBuffer &ret)
38473847
{
3848-
#ifdef _CONTAINERIZED
3848+
if (!isContainerized())
3849+
return false;
38493850
if (getDefaultPlane(ret, "@dataPlane", "data"))
38503851
return true;
38513852

38523853
throwUnexpectedX("Default data plane not specified"); // The default should always have been configured by the helm charts
3853-
#else
3854-
return false;
3855-
#endif
38563854
}
38573855

38583856
bool getDefaultSpillPlane(StringBuffer &ret)
38593857
{
3860-
#ifdef _CONTAINERIZED
3861-
if (getDefaultPlane(ret, "@spillPlane", "spill"))
3858+
if (!isContainerized())
3859+
return false;
3860+
if (getComponentConfigSP()->getProp("@spillPlane", ret))
3861+
return true;
3862+
else if (getGlobalConfigSP()->getProp("storage/@spillPlane", ret))
3863+
return true;
3864+
else if (getDefaultPlane(ret, nullptr, "spill"))
38623865
return true;
38633866

38643867
throwUnexpectedX("Default spill plane not specified"); // The default should always have been configured by the helm charts
3865-
#else
3866-
return false;
3867-
#endif
38683868
}
38693869

38703870
bool getDefaultIndexBuildStoragePlane(StringBuffer &ret)
38713871
{
3872-
#ifdef _CONTAINERIZED
3872+
if (!isContainerized())
3873+
return false;
38733874
if (getComponentConfigSP()->getProp("@indexBuildPlane", ret))
38743875
return true;
38753876
else if (getGlobalConfigSP()->getProp("storage/@indexBuildPlane", ret))
38763877
return true;
38773878
else
38783879
return getDefaultStoragePlane(ret);
3879-
#else
3880-
return false;
3881-
#endif
3880+
}
3881+
3882+
bool getDefaultPersistPlane(StringBuffer &ret)
3883+
{
3884+
if (!isContainerized())
3885+
return false;
3886+
if (getComponentConfigSP()->getProp("@persistPlane", ret))
3887+
return true;
3888+
else if (getGlobalConfigSP()->getProp("storage/@persistPlane", ret))
3889+
return true;
3890+
else
3891+
return getDefaultStoragePlane(ret);
3892+
}
3893+
3894+
bool getDefaultJobTempPlane(StringBuffer &ret)
3895+
{
3896+
if (!isContainerized())
3897+
return false;
3898+
if (getComponentConfigSP()->getProp("@jobTempPlane", ret))
3899+
return true;
3900+
else if (getGlobalConfigSP()->getProp("storage/@jobTempPlane", ret))
3901+
return true;
3902+
else
3903+
{
3904+
// NB: In hthor jobtemps are written to the spill plane and hence ephemeral storage by default
3905+
// In Thor they are written to the default data storage plane by default.
3906+
// This is because HThor doesn't need them persisted beyond the lifetime of the process, but Thor does.
3907+
return getDefaultStoragePlane(ret);
3908+
}
38823909
}
38833910

38843911
//---------------------------------------------------------------------------------------------------------------------

dali/base/dafdesc.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ extern da_decl void disableStoragePlanesDaliUpdates();
412412
extern da_decl bool getDefaultStoragePlane(StringBuffer &ret);
413413
extern da_decl bool getDefaultSpillPlane(StringBuffer &ret);
414414
extern da_decl bool getDefaultIndexBuildStoragePlane(StringBuffer &ret);
415+
extern da_decl bool getDefaultPersistPlane(StringBuffer &ret);
416+
extern da_decl bool getDefaultJobTempPlane(StringBuffer &ret);
415417
extern da_decl IStoragePlane * getDataStoragePlane(const char * name, bool required);
416418
extern da_decl IStoragePlane * getRemoteStoragePlane(const char * name, bool required);
417419
extern da_decl IStoragePlane * createStoragePlane(IPropertyTree *meta);

0 commit comments

Comments
 (0)