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 A8E37200D48 for ; Wed, 29 Nov 2017 15:49:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A7D7E160C17; Wed, 29 Nov 2017 14:49:06 +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 EEDEF160C16 for ; Wed, 29 Nov 2017 15:49:05 +0100 (CET) Received: (qmail 8219 invoked by uid 500); 29 Nov 2017 14:49:05 -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 8210 invoked by uid 99); 29 Nov 2017 14:49:05 -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; Wed, 29 Nov 2017 14:49:05 +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 73C2C1A0D18 for ; Wed, 29 Nov 2017 14:49:04 +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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id UFCnNcpKot-J for ; Wed, 29 Nov 2017 14:49:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B2E8C5F4EB for ; Wed, 29 Nov 2017 14:49:02 +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 CBAFEE2573 for ; Wed, 29 Nov 2017 14:49: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 BD4E62105D for ; Wed, 29 Nov 2017 14:49:00 +0000 (UTC) Date: Wed, 29 Nov 2017 14:49:00 +0000 (UTC) From: "Aljoscha Krettek (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (FLINK-8165) ParameterTools not serializable properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 29 Nov 2017 14:49:06 -0000 [ https://issues.apache.org/jira/browse/FLINK-8165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aljoscha Krettek closed FLINK-8165. ----------------------------------- Resolution: Fixed Fixed on master in 731896ae709753d5cc225d94585cb0d738e86ca9 Fixed on release-1.4 in 9169ca3f15bb277e918aaf8dfd23b014d0ea67cc > ParameterTools not serializable properly > ---------------------------------------- > > Key: FLINK-8165 > URL: https://issues.apache.org/jira/browse/FLINK-8165 > Project: Flink > Issue Type: Bug > Components: Configuration, Java API > Affects Versions: 1.4.0, 1.5.0 > Reporter: Gyula Fora > Assignee: Gyula Fora > Priority: Blocker > Fix For: 1.4.0 > > > Trying to get with default value after deserialization fails as the EmptyMap doesn't support put operations for new default values. > The problem is here: > https://github.com/apache/flink/blob/release-1.4.0-rc2/flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java#L621 > Reproduce: > {code} > @Test > public void tes() throws IOException, ClassNotFoundException { > ParameterTool params = ParameterTool.fromMap(new HashMap<>()); > // works > params.get("asd", "default"); > byte[] b = InstantiationUtil.serializeObject(params); > ParameterTool dparams = InstantiationUtil.deserializeObject(b, getClass().getClassLoader()); > // fails > dparams.get("asd", "default"); > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)