Browse Source

HPCC-17904 Avoid losing early query initialization exceptions.

If a query failed during preparation, the exception could be
lost because the initialization reply had already been sent.
Regression introduced by HPCC-15320.

Signed-off-by: Jake Smith <jake.smith@lexisnexisrisk.com>
Jake Smith 8 years ago
parent
commit
1430bb99f2
1 changed files with 2 additions and 3 deletions
  1. 2 3
      thorlcr/slave/slavmain.cpp

+ 2 - 3
thorlcr/slave/slavmain.cpp

@@ -435,9 +435,6 @@ public:
 
                             jobChannel.addDependencies(job->queryXGMML(), false);
                         }
-                        msg.clear();
-                        msg.append(false);
-                        queryNodeComm().reply(msg); // reply to sendGraph()
 
                         for (unsigned c=0; c<job->queryJobChannels(); c++)
                         {
@@ -446,6 +443,8 @@ public:
 
                             jobChannel.startGraph(*subGraph, true, 0, NULL);
                         }
+                        msg.clear();
+                        msg.append(false);
 
                         break;
                     }