protected boolean internalNonBlockingIsComplete() throws IOException { return isDagStatusComplete(); }
protected boolean internalNonBlockingIsComplete() throws IOException { return isDagStatusComplete(); }
protected boolean internalNonBlockingIsSuccessful() throws IOException { return isDagStatusComplete() && getDagStatusState() == DAGStatus.State.SUCCEEDED; }
protected boolean internalNonBlockingIsSuccessful() throws IOException { return isDagStatusComplete() && getDagStatusState() == DAGStatus.State.SUCCEEDED; }
protected boolean internalIsStartedRunning() { // this is an alternative, seems to be set in tests sooner // but unsure if the tasks are actually engaged return getDagStatusState() == DAGStatus.State.RUNNING || isDagStatusComplete(); /* DAGStatus dagStatus = getDagStatus(); if( dagStatus == null ) return false; Progress dagProgress = dagStatus.getDAGProgress(); // not strictly true if( dagProgress == null ) return false; // same as showing progress in map/reduce int completed = dagProgress.getRunningTaskCount() + dagProgress.getFailedTaskCount() + dagProgress.getKilledTaskCount() + dagProgress.getSucceededTaskCount(); return completed > 0; */ } }
protected boolean internalIsStartedRunning() { // this is an alternative, seems to be set in tests sooner // but unsure if the tasks are actually engaged return getDagStatusState() == DAGStatus.State.RUNNING || isDagStatusComplete(); /* DAGStatus dagStatus = getDagStatus(); if( dagStatus == null ) return false; Progress dagProgress = dagStatus.getDAGProgress(); // not strictly true if( dagProgress == null ) return false; // same as showing progress in map/reduce int completed = dagProgress.getRunningTaskCount() + dagProgress.getFailedTaskCount() + dagProgress.getKilledTaskCount() + dagProgress.getSucceededTaskCount(); return completed > 0; */ } }
protected void internalBlockOnStop() throws IOException { if( isDagStatusComplete() ) return; try { if( dagClient != null ) dagClient.tryKillDAG(); // sometimes throws an NPE } catch( Exception exception ) { flowStep.logWarn( "exception during attempt to kill dag", exception ); } stopDAGClient(); stopTezClient(); }
protected void internalBlockOnStop() throws IOException { if( isDagStatusComplete() ) return; try { if( dagClient != null ) dagClient.tryKillDAG(); // sometimes throws an NPE } catch( Exception exception ) { flowStep.logWarn( "exception during attempt to kill dag", exception ); } stopDAGClient(); stopTezClient(); }