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 516E6200B73 for ; Mon, 29 Aug 2016 22:29:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5005D160AC8; Mon, 29 Aug 2016 20:29:22 +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 9E6A4160A89 for ; Mon, 29 Aug 2016 22:29:21 +0200 (CEST) Received: (qmail 44838 invoked by uid 500); 29 Aug 2016 20:29:20 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 44804 invoked by uid 99); 29 Aug 2016 20:29:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 20:29:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8FCE12C0158 for ; Mon, 29 Aug 2016 20:29:20 +0000 (UTC) Date: Mon, 29 Aug 2016 20:29:20 +0000 (UTC) From: "Min Shen (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5543) ResourceManager SchedulingMonitor could potentially terminate the preemption checker thread MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 29 Aug 2016 20:29:22 -0000 [ https://issues.apache.org/jira/browse/YARN-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15446963#comment-15446963 ] Min Shen commented on YARN-5543: -------------------------------- [~wangda], Revised patch attached. Could you please take a look? > ResourceManager SchedulingMonitor could potentially terminate the preemption checker thread > ------------------------------------------------------------------------------------------- > > Key: YARN-5543 > URL: https://issues.apache.org/jira/browse/YARN-5543 > Project: Hadoop YARN > Issue Type: Bug > Components: capacityscheduler, resourcemanager > Affects Versions: 2.7.0, 2.6.1 > Reporter: Min Shen > Assignee: Min Shen > Attachments: YARN-5543.001.patch, YARN-5543.002.patch > > > In SchedulingMonitor.java, when the service starts, it starts a checker thread to perform Capacity Scheduler's preemption. However, the implementation of this checker thread has the following issue: > {code} > while (!stopped && !Thread.currentThread().isInterrupted()) { > .... > try { > Thread.sleep(monitorInterval) > } catch (InterruptedException e) { > .... > break; > } > } > {code} > The above code snippet will terminate the checker thread whenever it is interrupted. > We noticed in our cluster that this could lead to CapacityScheduler's preemption disabled unexpectedly due to the checker thread getting terminated. > We propose to use ScheduledExecutorService to improve the robustness of this part of the code to ensure the liveness of CapacityScheduler's preemption functionality. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org