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 A7250200BB2 for ; Fri, 23 Sep 2016 15:22:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5E6E160AEF; Fri, 23 Sep 2016 13:22: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 B64CD160AE7 for ; Fri, 23 Sep 2016 15:22:22 +0200 (CEST) Received: (qmail 36538 invoked by uid 500); 23 Sep 2016 13:22: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 36178 invoked by uid 99); 23 Sep 2016 13:22:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2016 13:22:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3DC832C0B08 for ; Fri, 23 Sep 2016 13:22:21 +0000 (UTC) Date: Fri, 23 Sep 2016 13:22:21 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4564) [metrics] Delimiter should be configured per reporter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Sep 2016 13:22:23 -0000 [ https://issues.apache.org/jira/browse/FLINK-4564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15516422#comment-15516422 ] ASF GitHub Bot commented on FLINK-4564: --------------------------------------- Github user zentol commented on a diff in the pull request: https://github.com/apache/flink/pull/2517#discussion_r80239440 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistry.java --- @@ -72,14 +74,12 @@ public MetricRegistry(Configuration config) { } this.scopeFormats = scopeFormats; - char delim; - try { - delim = config.getString(ConfigConstants.METRICS_SCOPE_DELIMITER, ".").charAt(0); - } catch (Exception e) { - LOG.warn("Failed to parse delimiter, using default delimiter.", e); - delim = '.'; + String defaultDelimiter = config.getString(ConfigConstants.METRICS_SCOPE_DELIMITER, "."); + if(defaultDelimiter.length()!=1){ --- End diff -- these changes are unnecessary, renaming ```delimiter``` to ```globalDelimiter``` should be sufficient. > [metrics] Delimiter should be configured per reporter > ----------------------------------------------------- > > Key: FLINK-4564 > URL: https://issues.apache.org/jira/browse/FLINK-4564 > Project: Flink > Issue Type: Bug > Components: Metrics > Affects Versions: 1.1.0 > Reporter: Chesnay Schepler > Assignee: Anton Mushin > > Currently, the delimiter used or the scope string is based on a configuration setting shared by all reporters. However, different reporters may have different requirements in regards to the delimiter, as such we should allow reporters to use a different delimiter. > We can keep the current setting as a global setting that is used if no specific setting was set. -- This message was sent by Atlassian JIRA (v6.3.4#6332)