private static void assertSameOp(final IHaltOpMessage expected, final IHaltOpMessage actual) { assertEquals("queryId", expected.getQueryId(), actual.getQueryId()); assertEquals("serviceId", expected.getServiceId(), actual.getServiceId()); assertEquals("bopId", expected.getBOpId(), actual.getBOpId()); assertEquals("partitionId", expected.getPartitionId(), actual.getPartitionId()); assertEquals("sinkMessagesOut", expected.getSinkMessagesOut(), actual.getSinkMessagesOut()); assertEquals("altSinkMessagesOut", expected.getAltSinkMessagesOut(), actual.getAltSinkMessagesOut());
final Integer bopId = msg.getBOpId(); if (!set.remove(msg.getPartitionId()) && !set.remove(msg.getServiceId())) {
.getBOpId()); if (msg.getSinkMessagesOut() != 0) { messagesProduced(sinkId, msg.getSinkMessagesOut()); if (msg.getAltSinkMessagesOut() != 0) { final Integer altSinkId = (Integer) bop .getRequiredProperty(PipelineOp.Annotations.ALT_SINK_REF); messagesProduced(altSinkId, msg.getAltSinkMessagesOut()); final RunStateEnum state = getOperatorRunState(msg.getBOpId()); final int fanOut = msg.getSinkMessagesOut() + msg.getAltSinkMessagesOut(); TableLog.tableLog.info(getTableRow("haltOp", msg.getServiceId(), msg.getBOpId(), msg.getPartitionId(), fanOut, msg.getCause(), msg.getStats())); log.info("haltOp : " + toString() + " : bop=" + msg.getBOpId() + ",opRunState=" + state + ",queryAllDone=" + isAllDone); log.trace(msg.toString()); if (msg.getCause() != null) { throw new ExecutionException(msg.getCause());
throw new IllegalArgumentException(); if (!queryId.equals(msg.getQueryId())) throw new IllegalArgumentException(); BOpStats tmp = statsMap.putIfAbsent(msg.getBOpId(), msg.getStats()); tmp = msg.getStats(); } else { if (tmp != msg.getStats()) { tmp.add(msg.getStats()); case StartLastPass: { @SuppressWarnings("rawtypes") final Set doneOn = runState.getDoneOn(msg.getBOpId()); doLastPass(msg.getBOpId(), doneOn); return; releaseNativeMemoryForOperator(msg.getBOpId()); log.info("Query reports all done: bopId=" + msg.getBOpId() + ", msg=" + msg + ", runState=" + runState);
@Override public void haltOp(final IHaltOpMessage msg) throws RemoteException { final AbstractRunningQuery q = getRunningQuery(msg.getQueryId()); if (q != null) { q.haltOp(msg); } }
.getBOpId()); if (msg.getSinkMessagesOut() != 0) { messagesProduced(sinkId, msg.getSinkMessagesOut()); if (msg.getAltSinkMessagesOut() != 0) { final Integer altSinkId = (Integer) bop .getRequiredProperty(PipelineOp.Annotations.ALT_SINK_REF); messagesProduced(altSinkId, msg.getAltSinkMessagesOut()); final RunStateEnum state = getOperatorRunState(msg.getBOpId()); final int fanOut = msg.getSinkMessagesOut() + msg.getAltSinkMessagesOut(); TableLog.tableLog.info(getTableRow("haltOp", msg.getServiceId(), msg.getBOpId(), msg.getPartitionId(), fanOut, msg.getCause(), msg.getStats())); log.info("haltOp : " + toString() + " : bop=" + msg.getBOpId() + ",opRunState=" + state + ",queryAllDone=" + isAllDone); log.trace(msg.toString()); if (msg.getCause() != null) { throw new ExecutionException(msg.getCause());
final Integer bopId = msg.getBOpId(); if (!set.remove(msg.getPartitionId()) && !set.remove(msg.getServiceId())) {
throw new IllegalArgumentException(); if (!queryId.equals(msg.getQueryId())) throw new IllegalArgumentException(); BOpStats tmp = statsMap.putIfAbsent(msg.getBOpId(), msg.getStats()); tmp = msg.getStats(); } else { if (tmp != msg.getStats()) { tmp.add(msg.getStats()); case StartLastPass: { @SuppressWarnings("rawtypes") final Set doneOn = runState.getDoneOn(msg.getBOpId()); doLastPass(msg.getBOpId(), doneOn); return; releaseNativeMemoryForOperator(msg.getBOpId()); log.info("Query reports all done: bopId=" + msg.getBOpId() + ", msg=" + msg + ", runState=" + runState);
@Override public void haltOp(final IHaltOpMessage msg) throws RemoteException { final AbstractRunningQuery q = getRunningQuery(msg.getQueryId()); if (q != null) { q.haltOp(msg); } }
private static void assertSameOp(final IHaltOpMessage expected, final IHaltOpMessage actual) { assertEquals("queryId", expected.getQueryId(), actual.getQueryId()); assertEquals("serviceId", expected.getServiceId(), actual.getServiceId()); assertEquals("bopId", expected.getBOpId(), actual.getBOpId()); assertEquals("partitionId", expected.getPartitionId(), actual.getPartitionId()); assertEquals("sinkMessagesOut", expected.getSinkMessagesOut(), actual.getSinkMessagesOut()); assertEquals("altSinkMessagesOut", expected.getAltSinkMessagesOut(), actual.getAltSinkMessagesOut());