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 41C86200D27 for ; Wed, 25 Oct 2017 15:05:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3FFD3160BDA; Wed, 25 Oct 2017 13:05:39 +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 83F441609E5 for ; Wed, 25 Oct 2017 15:05:38 +0200 (CEST) Received: (qmail 60556 invoked by uid 500); 25 Oct 2017 13:05:37 -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 60547 invoked by uid 99); 25 Oct 2017 13:05:37 -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; Wed, 25 Oct 2017 13:05:37 +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 287DC180371 for ; Wed, 25 Oct 2017 13:05:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] 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 PXc8OwTk0TjS for ; Wed, 25 Oct 2017 13:05:35 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 01D875FD71 for ; Wed, 25 Oct 2017 13:05:34 +0000 (UTC) Received: (qmail 60364 invoked by uid 99); 25 Oct 2017 13:05:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 13:05:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 64163DFA0A; Wed, 25 Oct 2017 13:05:34 +0000 (UTC) From: pnowojski To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org References: In-Reply-To: Subject: [GitHub] flink pull request #4840: [FLINK-7368][metrics] Make MetricStore ThreadSafe ... Content-Type: text/plain Message-Id: <20171025130534.64163DFA0A@git1-us-west.apache.org> Date: Wed, 25 Oct 2017 13:05:34 +0000 (UTC) archived-at: Wed, 25 Oct 2017 13:05:39 -0000 GitHub user pnowojski reopened a pull request: https://github.com/apache/flink/pull/4840 [FLINK-7368][metrics] Make MetricStore ThreadSafe class Remove external synchronisation on MetricStore ## What is the purpose of the change This is a refactor that makes `MetricStore` thread safe. It achieves it by pulling in all modifying methods and by returning immutable copies in getters. ## Verifying this change This change is already covered by existing tests, such as `MetricStoreTest` or `MetricFetcherTest` ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (yes / **no**) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / **no**) - The serializers: (yes / **no** / don't know) - The runtime per-record code paths (performance sensitive): (yes / **no** / don't know) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / **no** / don't know) ## Documentation - Does this pull request introduce a new feature? (yes / **no**) You can merge this pull request into a Git repository by running: $ git pull https://github.com/pnowojski/flink flink7368 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/4840.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4840 ---- commit b19077430808923e047b808f68efd47f4c9527e0 Author: Piotr Nowojski Date: 2017-10-16T14:53:14Z [FLINK-7368][metrics] Make MetricStore ThreadSafe class Remove external synchronization on MetricStore commit b6be2ce229ec3c97cd3bc3861f1989e971599fd7 Author: Piotr Nowojski Date: 2017-10-25T11:53:16Z fixup! [FLINK-7368][metrics] Make MetricStore ThreadSafe class ---- ---