From feb6a2d593d4b01357ff69290974ba07a3f52808 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Wed, 25 Sep 2024 09:31:03 +0100 Subject: [PATCH] HPCC-32720 Fix multiJobLinger=false configurations Revert to using IP (not hostname) for inter pod communication for communicating subsequent job graphs. --- thorlcr/master/thgraphmanager.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/thorlcr/master/thgraphmanager.cpp b/thorlcr/master/thgraphmanager.cpp index 4654afddf15..bf095d9ae1d 100644 --- a/thorlcr/master/thgraphmanager.cpp +++ b/thorlcr/master/thgraphmanager.cpp @@ -1442,7 +1442,7 @@ void thorMain(ILogMsgHandler *logHandler, const char *wuid, const char *graphNam unsigned lingerPeriod = globals->getPropInt("@lingerPeriod", defaultThorLingerPeriod)*1000; bool multiJobLinger = globals->getPropBool("@multiJobLinger", defaultThorMultiJobLinger); VStringBuffer multiJobLingerQueueName("%s_lingerqueue", globals->queryProp("@name")); - StringBuffer instance("thorinstance_"); + StringBuffer instance("thorinstance_"); // only used when multiJobLinger = false (and lingerPeriod>0) if (multiJobLinger) { @@ -1457,7 +1457,12 @@ void thorMain(ILogMsgHandler *logHandler, const char *wuid, const char *graphNam thorQueue->connect(false); } - queryMyNode()->endpoint().getEndpointHostText(instance); + if (!multiJobLinger && lingerPeriod) + { + // We avoid using getEndpointHostText here and get an IP instead, because the client pod communicating directly with this Thor manager, + // will not have the ability to resolve this pods hostname. + queryMyNode()->endpoint().getEndpointIpText(instance); + } StringBuffer currentGraphName(graphName); StringBuffer currentWuid(wuid);