From 3588de99f8b8a393e053ef82c18e3e6faf759b24 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Mon, 30 Sep 2024 11:39:09 +0100 Subject: [PATCH] HPCC-32720 add comments Signed-off-by: Jake Smith --- 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 06452ab8841..cc540a53795 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().getEndpointIpText(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 currentWfId; // not filled/not used until recvNextGraph() is called. StringBuffer currentGraphName(graphName); StringBuffer currentWuid(wuid);