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 B4A5C200D4B for ; Mon, 27 Nov 2017 14:10:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B2D96160C13; Mon, 27 Nov 2017 13:10:46 +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 04597160C02 for ; Mon, 27 Nov 2017 14:10:45 +0100 (CET) Received: (qmail 70060 invoked by uid 500); 27 Nov 2017 13:10:45 -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 70050 invoked by uid 99); 27 Nov 2017 13:10:45 -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; Mon, 27 Nov 2017 13:10:45 +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 5091B1A0063 for ; Mon, 27 Nov 2017 13:10:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 2014F2OiKkUJ for ; Mon, 27 Nov 2017 13:10:43 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 543F25F20B for ; Mon, 27 Nov 2017 13:10:42 +0000 (UTC) Received: (qmail 70039 invoked by uid 99); 27 Nov 2017 13:10:41 -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; Mon, 27 Nov 2017 13:10:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8458CDFAB6; Mon, 27 Nov 2017 13:10:41 +0000 (UTC) From: GJL To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org Message-ID: Subject: [GitHub] flink pull request #5082: [FLINK-8143][flip6] Migrate SubtaskMetricsHandler ... Content-Type: text/plain Date: Mon, 27 Nov 2017 13:10:41 +0000 (UTC) archived-at: Mon, 27 Nov 2017 13:10:46 -0000 GitHub user GJL opened a pull request: https://github.com/apache/flink/pull/5082 [FLINK-8143][flip6] Migrate SubtaskMetricsHandler to new RestServerEndpoint ## What is the purpose of the change *FLIP-6 efforts: Migrating HTTP handlers* ## Brief change log - Migrate logic from `org.apache.flink.runtime.rest.handler.legacy.metrics.SubtaskMetricsHandler to` new handler. - Add new handler to `DispatcherRestEndpoint`. ## Verifying this change - *Added unit tests for all new classes and modified existing classes except for DispatcherRestEndpoint.* - *Manually deployed a job locally and verified with `curl` that SubtaskMetrics can be queried in FLIP-6 standalone mode.* ## 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) - The S3 file system connector: (yes / **no** / don't know) ## Documentation - Does this pull request introduce a new feature? (yes / **no**) - If yes, how is the feature documented? (**not applicable** / docs / JavaDocs / not documented) CC: @tillrohrmann You can merge this pull request into a Git repository by running: $ git pull https://github.com/GJL/flink FLINK-8143 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5082.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 #5082 ---- commit d32d978e1826df6fab8f5b4a27d47b4367d54ece Author: gyao Date: 2017-11-27T12:30:18Z [FLINK-8150][flip6] Migrate SubtaskMetricsHandler to new RestServerEndpoint Migrate logic from org.apache.flink.runtime.rest.handler.legacy.metrics.SubtaskMetricsHandler to new handler. Add new handler to DispatcherRestEndpoint. commit 96c9f671d6320d5d1d014d5df27f4a3a07417993 Author: gyao Date: 2017-11-27T12:32:52Z [hotfix][Javadoc] Remove wrong Javadoc from SubtaskMetricsHandler commit c369d733fecc71a7581b5a6cbf196b35ecdfed12 Author: gyao Date: 2017-11-27T12:34:02Z [hotfix][flip6] Add unit tests JobVertexMetricsHeadersTest ---- ---