Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPCC-32093 Add test option to debug rogue SORT clients #18782

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions thorlcr/msort/tsorts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,18 @@ class CThorSorter : public CSimpleInterface, implements IThorSorter, implements
}
virtual void MultiMergeBetween(rowcount_t _globalCount, unsigned mapsize, rowcount_t * map, rowcount_t * mapupper, unsigned num, SocketEndpoint * endpoints)
{
unsigned blockSortConnectActId = activity->getOptInt("blockSortConnectActId");
if (blockSortConnectActId == activity->queryContainer().queryId())
{
// NB: this is a testing option, see HPCC-xxxx for more detail
// This will prevent the sort from proceeding and connecting to the accept()'s on the other side.
DBGLOG("Blocking in MultiMergeBetween, blocking sort connect");
bool held = true;
while (held)
{
MilliSleep(30000);
}
}
assertex(transferserver.get()!=NULL);
globalCount = _globalCount;
if (intercept)
Expand Down
Loading