private void pingCompletionState(int inputIndex, String owningProcess, boolean isCompletion, InvocationContext context) { CompletionState cs = getCompletionState(owningProcess); cs.inputComplete[inputIndex] = true; if (isCompletion) cs.receivedCompletion = true; if (cs.isComplete()) { cleanUp(owningProcess); ownerToCompletion.remove(owningProcess); if (cs.receivedCompletion) pushCompletion(new Completion(owningProcess, new int[0], context)); } }