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 DBE2C200CC1 for ; Mon, 10 Jul 2017 11:24:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C8162166C00; Mon, 10 Jul 2017 09:24:21 +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 20304166B67 for ; Mon, 10 Jul 2017 11:24:20 +0200 (CEST) Received: (qmail 45453 invoked by uid 500); 10 Jul 2017 09:15:51 -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 45401 invoked by uid 99); 10 Jul 2017 09:15:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2017 09:15:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 503FE192351 for ; Mon, 10 Jul 2017 09:14:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id n6Mi9gTDH_-K for ; Mon, 10 Jul 2017 09:14:23 +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 7D1D861EC2 for ; Mon, 10 Jul 2017 08:57:07 +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 DA0CCE08C1 for ; Mon, 10 Jul 2017 08:57:05 +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 D744224692 for ; Mon, 10 Jul 2017 08:57:02 +0000 (UTC) Date: Mon, 10 Jul 2017 08:57:02 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-7099) Replace usages of deprecated JOB_MANAGER_IPC_PORT_KEY MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Jul 2017 09:24:22 -0000 [ https://issues.apache.org/jira/browse/FLINK-7099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16080041#comment-16080041 ] ASF GitHub Bot commented on FLINK-7099: --------------------------------------- Github user zjureel commented on a diff in the pull request: https://github.com/apache/flink/pull/4278#discussion_r126366568 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/BootstrapTools.java --- @@ -185,8 +185,8 @@ public static WebMonitor startWebMonitorIfConfigured( // this ensures correct values are present in the web frontend final Address address = AkkaUtils.getAddress(actorSystem); - config.setString(ConfigConstants.JOB_MANAGER_IPC_ADDRESS_KEY, address.host().get()); - config.setString(ConfigConstants.JOB_MANAGER_IPC_PORT_KEY, address.port().get().toString()); + config.setString(JobManagerOptions.ADDRESS, address.host().get()); + config.setInteger(JobManagerOptions.PORT, Integer.parseInt(address.port().get().toString())); --- End diff -- @zentol The returned value of `address.port().get()` in java is `Object` and I found it can't be used as `config.setInteger(JobManagerOptions.PORT, address.port().get()));` directly. Do you mean that we should use `config.setInteger(JobManagerOptions.PORT, (Integer)address.port().get()));` instead? Hoping to hear your suggestion, thanks > Replace usages of deprecated JOB_MANAGER_IPC_PORT_KEY > ----------------------------------------------------- > > Key: FLINK-7099 > URL: https://issues.apache.org/jira/browse/FLINK-7099 > Project: Flink > Issue Type: Improvement > Components: Configuration, Local Runtime > Affects Versions: 1.4.0 > Reporter: Chesnay Schepler > Assignee: Fang Yong > Fix For: 1.4.0 > > > The deprecated {{ConfigConstants#JOB_MANAGER_IPC_PORT_KEY}} is still used a lot. > We should replace these usages with {{JobManagerOptions#PORT}}. -- This message was sent by Atlassian JIRA (v6.4.14#64029)