Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/candidate-9.8.x'
Browse files Browse the repository at this point in the history
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 13, 2024
2 parents f355d48 + d3397d7 commit b0ab434
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions system/jlib/jqueue.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ public:
stopped = false;
}

bool queryStopped() const { return stopped; }

bool enqueue(BASE *e,unsigned timeout=INFINITE)
{
unsigned numToSignal = 0;
Expand Down
11 changes: 9 additions & 2 deletions thorlcr/activities/lookupjoin/thlookupjoinslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ class CBroadcaster : public CSimpleInterface

// in theory each worker could be sending log(n) packets, with the broadcaster on each blocking waiting for acks
unsigned limit = nodes * std::ceil(std::log2(nodes));
broadcastQueue.setLimit(limit);
limit = broadcaster.activity.getOptInt("lookupJoinBroadcastQLimit", limit);
if (0 != limit)
broadcastQueue.setLimit(limit);
}
~CSend()
{
Expand All @@ -203,8 +205,13 @@ class CBroadcaster : public CSimpleInterface
return;
}
}
while (!broadcastQueue.enqueue(sendItem, 5000)) // will block if queue full
while (!broadcastQueue.enqueue(sendItem, 20000)) // will timeout if queue full
{
if (broadcastQueue.queryStopped())
{
DBGLOG("broadcastQueue stopped");
break;
}
DBGLOG("CSend::addBlock() - broadcastQueue full, waiting for space");
}
}
Expand Down

0 comments on commit b0ab434

Please sign in to comment.