Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 461C3200C1F for ; Fri, 3 Feb 2017 13:37:34 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 43275160B55; Fri, 3 Feb 2017 12:37:34 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 76C7B160B48 for ; Fri, 3 Feb 2017 13:37:33 +0100 (CET) Received: (qmail 56920 invoked by uid 500); 3 Feb 2017 12:37:27 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 56724 invoked by uid 99); 3 Feb 2017 12:37:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2017 12:37:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5E001E01C8; Fri, 3 Feb 2017 12:37:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sewen@apache.org To: commits@flink.apache.org Date: Fri, 03 Feb 2017 12:37:30 -0000 Message-Id: <4814e79011fe4e34bc2cf7ef6af53004@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [4/6] flink git commit: [hotfix] Minor code cleanups in the ExecutionGraph's Execution archived-at: Fri, 03 Feb 2017 12:37:34 -0000 [hotfix] Minor code cleanups in the ExecutionGraph's Execution Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/10e4e321 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/10e4e321 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/10e4e321 Branch: refs/heads/master Commit: 10e4e321b335b6f9376501f90715e31b71b02da8 Parents: 2e107b1 Author: Stephan Ewen Authored: Tue Jan 31 17:21:36 2017 +0100 Committer: Stephan Ewen Committed: Fri Feb 3 10:28:23 2017 +0100 ---------------------------------------------------------------------- .../flink/runtime/executiongraph/Execution.java | 24 ++++++++------------ .../taskmanager/TaskManagerLocation.java | 2 +- 2 files changed, 10 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/10e4e321/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java ---------------------------------------------------------------------- diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java index 18a4445..c2fe5ea 100644 --- a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java +++ b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java @@ -49,6 +49,7 @@ import org.apache.flink.runtime.messages.StackTraceSampleResponse; import org.apache.flink.runtime.state.TaskStateHandles; import org.apache.flink.runtime.taskmanager.TaskManagerLocation; import org.apache.flink.util.ExceptionUtils; + import org.slf4j.Logger; import java.util.ArrayList; @@ -70,6 +71,7 @@ import static org.apache.flink.runtime.execution.ExecutionState.FINISHED; import static org.apache.flink.runtime.execution.ExecutionState.RUNNING; import static org.apache.flink.runtime.execution.ExecutionState.SCHEDULED; import static org.apache.flink.util.Preconditions.checkNotNull; +import static org.apache.flink.util.Preconditions.checkState; /** * A single execution of a vertex. While an {@link ExecutionVertex} can be executed multiple times (for recovery, @@ -112,7 +114,7 @@ public class Execution implements AccessExecution, Archiveable partialInputChannelDeploymentDescriptors; + private final ConcurrentLinkedQueue partialInputChannelDeploymentDescriptors; private volatile ExecutionState state = CREATED; @@ -120,8 +122,6 @@ public class Execution implements AccessExecution, Archiveable, jav @Override public int compareTo(@Nonnull TaskManagerLocation o) { - // decide based on address first + // decide based on resource ID first int resourceIdCmp = this.resourceID.getResourceIdString().compareTo(o.resourceID.getResourceIdString()); if (resourceIdCmp != 0) { return resourceIdCmp;