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 EF838200CB4 for ; Tue, 13 Jun 2017 05:08:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E8E3F160BDE; Tue, 13 Jun 2017 03:08:05 +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 11F5E160BD9 for ; Tue, 13 Jun 2017 05:08:04 +0200 (CEST) Received: (qmail 22599 invoked by uid 500); 13 Jun 2017 03:08:04 -0000 Mailing-List: contact issues-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 issues@flink.apache.org Received: (qmail 22590 invoked by uid 99); 13 Jun 2017 03:08:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2017 03:08:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 91B51C1471 for ; Tue, 13 Jun 2017 03:08:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7Lt-C86TZ71W for ; Tue, 13 Jun 2017 03:08:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 53A7C5F2EE for ; Tue, 13 Jun 2017 03:08:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7BE80E09F4 for ; Tue, 13 Jun 2017 03:08:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1909D21E0D for ; Tue, 13 Jun 2017 03:08:00 +0000 (UTC) Date: Tue, 13 Jun 2017 03:08:00 +0000 (UTC) From: "mingleizhang (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FLINK-6682) Improve error message in case parallelism exceeds maxParallelism MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Jun 2017 03:08:06 -0000 [ https://issues.apache.org/jira/browse/FLINK-6682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16047364#comment-16047364 ] mingleizhang edited comment on FLINK-6682 at 6/13/17 3:07 AM: -------------------------------------------------------------- Hi,[~Zentol] . I put the check conditions at {{assignAttemptState}} method which under {{StateAssignmentOperation}}. What do you think ? Not very sure about task info I wrote. It would be great helpful if you can check this. {code} private void assignAttemptState(ExecutionJobVertex executionJobVertex, List operatorStates) { List operatorIDs = executionJobVertex.getOperatorIDs(); //1. first compute the new parallelism checkParallelismPreconditions(operatorStates, executionJobVertex); int newParallelism = executionJobVertex.getParallelism(); if (executionJobVertex.getMaxParallelism() < newParallelism) { LOG.error("Task info: {}, maxParallelism number: {}, and parallelism number: {}", this.tasks, executionJobVertex.getMaxParallelism(), newParallelism); } List keyGroupPartitions = createKeyGroupPartitions( executionJobVertex.getMaxParallelism(), newParallelism); {code} was (Author: mingleizhang): Hi,[~Zentol] . I put the check conditions at {{assignAttemptState}} method. What do you think ? Not very sure about task info I wrote. It would be great helpful if you can check this. {code} private void assignAttemptState(ExecutionJobVertex executionJobVertex, List operatorStates) { List operatorIDs = executionJobVertex.getOperatorIDs(); //1. first compute the new parallelism checkParallelismPreconditions(operatorStates, executionJobVertex); int newParallelism = executionJobVertex.getParallelism(); if (executionJobVertex.getMaxParallelism() < newParallelism) { LOG.error("Task info: {}, maxParallelism number: {}, and parallelism number: {}", this.tasks, executionJobVertex.getMaxParallelism(), newParallelism); } List keyGroupPartitions = createKeyGroupPartitions( executionJobVertex.getMaxParallelism(), newParallelism); {code} > Improve error message in case parallelism exceeds maxParallelism > ---------------------------------------------------------------- > > Key: FLINK-6682 > URL: https://issues.apache.org/jira/browse/FLINK-6682 > Project: Flink > Issue Type: Improvement > Components: State Backends, Checkpointing > Affects Versions: 1.3.0, 1.4.0 > Reporter: Chesnay Schepler > > When restoring a job with a parallelism that exceeds the maxParallelism we're not providing a useful error message, as all you get is an IllegalArgumentException: > {code} > Caused by: org.apache.flink.runtime.client.JobExecutionException: Job execution failed > at org.apache.flink.runtime.client.JobClient.awaitJobResult(JobClient.java:343) > at org.apache.flink.runtime.client.JobClient.submitJobAndWait(JobClient.java:396) > at org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:467) > ... 22 more > Caused by: java.lang.IllegalArgumentException > at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:123) > at org.apache.flink.runtime.checkpoint.StateAssignmentOperation.createKeyGroupPartitions(StateAssignmentOperation.java:449) > at org.apache.flink.runtime.checkpoint.StateAssignmentOperation.assignAttemptState(StateAssignmentOperation.java:117) > at org.apache.flink.runtime.checkpoint.StateAssignmentOperation.assignStates(StateAssignmentOperation.java:102) > at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.restoreLatestCheckpointedState(CheckpointCoordinator.java:1038) > at org.apache.flink.runtime.checkpoint.CheckpointCoordinator.restoreSavepoint(CheckpointCoordinator.java:1101) > at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$org$apache$flink$runtime$jobmanager$JobManager$$submitJob$1.apply$mcV$sp(JobManager.scala:1386) > at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$org$apache$flink$runtime$jobmanager$JobManager$$submitJob$1.apply(JobManager.scala:1372) > at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$org$apache$flink$runtime$jobmanager$JobManager$$submitJob$1.apply(JobManager.scala:1372) > at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24) > at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24) > at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40) > at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) > at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) > at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) > at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) > at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)