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 2190D200C8E for ; Thu, 8 Jun 2017 17:35:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 203C8160BD5; Thu, 8 Jun 2017 15:35:23 +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 66E4D160BCA for ; Thu, 8 Jun 2017 17:35:22 +0200 (CEST) Received: (qmail 57337 invoked by uid 500); 8 Jun 2017 15:35:21 -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 57328 invoked by uid 99); 8 Jun 2017 15:35:21 -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; Thu, 08 Jun 2017 15:35:21 +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 2205E188AB7 for ; Thu, 8 Jun 2017 15:35:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -97.888 X-Spam-Level: X-Spam-Status: No, score=-97.888 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qf8ZFjV7kjVO for ; Thu, 8 Jun 2017 15:35:19 +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 E93055F6BE for ; Thu, 8 Jun 2017 15:35:18 +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 8C585E070E for ; Thu, 8 Jun 2017 15:35:18 +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 4340021E0E for ; Thu, 8 Jun 2017 15:35:18 +0000 (UTC) Date: Thu, 8 Jun 2017 15:35:18 +0000 (UTC) From: "Tzu-Li (Gordon) Tai (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-6857) Add global default Kryo serializer configuration to StreamExecutionEnvironment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 08 Jun 2017 15:35:23 -0000 [ https://issues.apache.org/jira/browse/FLINK-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042864#comment-16042864 ] Tzu-Li (Gordon) Tai commented on FLINK-6857: -------------------------------------------- [~StephanEwen] no, the current {{addDefaultKryoSerializer}} methods are defaults tied to specific classes, and correspond to the {{addDefaultSerializer(Class, Serializer)}} methods in Kryo. This JIRA is meant to add a {{setDefaultSerializer}} configuration, which allows overriding the hard default (i.e., when no registered defaults for a class can be found), which in Kryo is the {{FieldSerializer}}. This would correspond to Kryo's {{setDefaultSerializer(Serializer)}} API. > Add global default Kryo serializer configuration to StreamExecutionEnvironment > ------------------------------------------------------------------------------ > > Key: FLINK-6857 > URL: https://issues.apache.org/jira/browse/FLINK-6857 > Project: Flink > Issue Type: Improvement > Components: Configuration, Type Serialization System > Reporter: Tzu-Li (Gordon) Tai > > See ML for original discussion: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/KryoException-Encountered-unregistered-class-ID-td13476.html. > We should have an additional {{setDefaultKryoSerializer}} method that allows overriding the global default serializer that is not tied to specific classes (out-of-the-box Kryo uses the {{FieldSerializer}} if no matches for default serializer settings can be found for a class). Internally in Flink's {{KryoSerializer}}, this would only be a matter of proxying that configured global default serializer for Kryo by calling {{Kryo.setDefaultSerializer(...)}} on the created Kryo instance. -- This message was sent by Atlassian JIRA (v6.3.15#6346)