@Override public RestartIndividualStrategy create(ExecutionGraph executionGraph) { return new RestartIndividualStrategy(executionGraph); } }
@Override public void notifyNewVertices(List<ExecutionJobVertex> newJobVerticesTopological) { // we validate here that the vertices are in fact not connected to // any other vertices for (ExecutionJobVertex ejv : newJobVerticesTopological) { List<IntermediateResult> inputs = ejv.getInputs(); IntermediateResult[] outputs = ejv.getProducedDataSets(); if ((inputs != null && inputs.size() > 0) || (outputs != null && outputs.length > 0)) { throw new FlinkRuntimeException("Incompatible failover strategy - strategy '" + getStrategyName() + "' can only handle jobs with only disconnected tasks."); } } }
@Override public void notifyNewVertices(List<ExecutionJobVertex> newJobVerticesTopological) { // we validate here that the vertices are in fact not connected to // any other vertices for (ExecutionJobVertex ejv : newJobVerticesTopological) { List<IntermediateResult> inputs = ejv.getInputs(); IntermediateResult[] outputs = ejv.getProducedDataSets(); if ((inputs != null && inputs.size() > 0) || (outputs != null && outputs.length > 0)) { throw new FlinkRuntimeException("Incompatible failover strategy - strategy '" + getStrategyName() + "' can only handle jobs with only disconnected tasks."); } } }
@Override public RestartIndividualStrategy create(ExecutionGraph executionGraph) { return new RestartIndividualStrategy(executionGraph); } }
@Override public void notifyNewVertices(List<ExecutionJobVertex> newJobVerticesTopological) { // we validate here that the vertices are in fact not connected to // any other vertices for (ExecutionJobVertex ejv : newJobVerticesTopological) { List<IntermediateResult> inputs = ejv.getInputs(); IntermediateResult[] outputs = ejv.getProducedDataSets(); if ((inputs != null && inputs.size() > 0) || (outputs != null && outputs.length > 0)) { throw new FlinkRuntimeException("Incompatible failover strategy - strategy '" + getStrategyName() + "' can only handle jobs with only disconnected tasks."); } } }
@Override public RestartIndividualStrategy create(ExecutionGraph executionGraph) { return new RestartIndividualStrategy(executionGraph); } }
@Override public void notifyNewVertices(List<ExecutionJobVertex> newJobVerticesTopological) { // we validate here that the vertices are in fact not connected to // any other vertices for (ExecutionJobVertex ejv : newJobVerticesTopological) { List<IntermediateResult> inputs = ejv.getInputs(); IntermediateResult[] outputs = ejv.getProducedDataSets(); if ((inputs != null && inputs.size() > 0) || (outputs != null && outputs.length > 0)) { throw new FlinkRuntimeException("Incompatible failover strategy - strategy '" + getStrategyName() + "' can only handle jobs with only disconnected tasks."); } } }
@Override public RestartIndividualStrategy create(ExecutionGraph executionGraph) { return new RestartIndividualStrategy(executionGraph); } }