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 8481D20049E for ; Thu, 10 Aug 2017 11:28:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 82FF816AED1; Thu, 10 Aug 2017 09:28:07 +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 CA5B516AEC8 for ; Thu, 10 Aug 2017 11:28:06 +0200 (CEST) Received: (qmail 51363 invoked by uid 500); 10 Aug 2017 09:28:06 -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 51352 invoked by uid 99); 10 Aug 2017 09:28:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 09:28:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 660FC1A07C8 for ; Thu, 10 Aug 2017 09:28:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4HVqnggLh3ym for ; Thu, 10 Aug 2017 09:28:04 +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 0102D5FBC6 for ; Thu, 10 Aug 2017 09:28:03 +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 C1248E0E56 for ; Thu, 10 Aug 2017 09:28:01 +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 2E3FE24189 for ; Thu, 10 Aug 2017 09:28:01 +0000 (UTC) Date: Thu, 10 Aug 2017 09:28:01 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-7199) Graph simplification does not set parallelism MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Aug 2017 09:28:07 -0000 [ https://issues.apache.org/jira/browse/FLINK-7199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121346#comment-16121346 ] ASF GitHub Bot commented on FLINK-7199: --------------------------------------- Github user NicoK commented on a diff in the pull request: https://github.com/apache/flink/pull/4346#discussion_r132402963 --- Diff: flink-libraries/flink-gelly-examples/src/main/java/org/apache/flink/graph/drivers/parameter/LongParameter.java --- @@ -52,16 +52,6 @@ public LongParameter(ParameterizedBase owner, String name) { public LongParameter setDefaultValue(long defaultValue) { super.setDefaultValue(defaultValue); - if (hasMinimumValue) { - Util.checkParameter(defaultValue >= minimumValue, - "Default value (" + defaultValue + ") must be greater than or equal to minimum (" + minimumValue + ")"); - } - - if (hasMaximumValue) { - Util.checkParameter(defaultValue <= maximumValue, - "Default value (" + defaultValue + ") must be less than or equal to maximum (" + maximumValue + ")"); - } - --- End diff -- I'm no expert here, but can you elaborate on why you removed these checks for the default value being in line with the min and max? I can only guess that this must be that way in case where the default parallelism is not within the bounds of the configured one. I'm wondering whether the `LongParameter` is used somewhere else were these bounds are expected to hold though. > Graph simplification does not set parallelism > --------------------------------------------- > > Key: FLINK-7199 > URL: https://issues.apache.org/jira/browse/FLINK-7199 > Project: Flink > Issue Type: Bug > Components: Gelly > Affects Versions: 1.3.1, 1.4.0 > Reporter: Greg Hogan > Assignee: Greg Hogan > Priority: Minor > > The {{Simplify}} parameter should accept and set the parallelism when calling the {{Simplify}} algorithms. -- This message was sent by Atlassian JIRA (v6.4.14#64029)