weijietong commented on a change in pull request #1334: DRILL-6385: Support JPPD feature URL: https://github.com/apache/drill/pull/1334#discussion_r200520207
########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/work/WorkManager.java ########## @@ -375,6 +378,30 @@ protected void cleanup() { public FragmentExecutor getFragmentRunner(final FragmentHandle handle) { return runningFragments.get(handle); } + + public void receiveRuntimeFilter(final RuntimeFilterWritable runtimeFilter) { + BitData.RuntimeFilterBDef runtimeFilterDef = runtimeFilter.getRuntimeFilterBDef(); + boolean toForeman = runtimeFilterDef.getToForeman(); + QueryId queryId = runtimeFilterDef.getQueryId(); + //to foreman + if (toForeman) { + Foreman foreman = queries.get(queryId); + if (foreman != null) { Review comment: Yes, it's supposed to handle the cases: the foreman has crashed or the whole query has completed ahead of time. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services