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 1B63E200BDA for ; Tue, 29 Nov 2016 02:57:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 19EC7160B27; Tue, 29 Nov 2016 01:57:00 +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 64475160B0D for ; Tue, 29 Nov 2016 02:56:59 +0100 (CET) Received: (qmail 7453 invoked by uid 500); 29 Nov 2016 01:56:58 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 7422 invoked by uid 99); 29 Nov 2016 01:56:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 01:56:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6B8252C03DE for ; Tue, 29 Nov 2016 01:56:58 +0000 (UTC) Date: Tue, 29 Nov 2016 01:56:58 +0000 (UTC) From: "Weiwei Yang (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13837) Process check bug in hadoop_stop_daemon of hadoop-functions.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 29 Nov 2016 01:57:00 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Weiwei Yang updated HADOOP-13837: --------------------------------- Attachment: (was: HADOOP-13837.01.patch) > Process check bug in hadoop_stop_daemon of hadoop-functions.sh > -------------------------------------------------------------- > > Key: HADOOP-13837 > URL: https://issues.apache.org/jira/browse/HADOOP-13837 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Reporter: Weiwei Yang > Assignee: Weiwei Yang > Attachments: HADOOP-13837.01.patch, check_proc.sh > > > Always get {{ERROR: Unable to kill ...}} after {{Trying to kill with kill -9}}, see following output of stop-yarn.sh > {code} > : WARNING: nodemanager did not stop gracefully after 5 seconds: Trying to kill with kill -9 > : ERROR: Unable to kill 18097 > {code} > hadoop_stop_daemon doesn't check process liveness correctly, this bug can be reproduced by the script easily. kill -9 would need some time to be done, directly check process existence right after mostly will fail. > {code} > function hadoop_stop_daemon > { > ... > kill -9 "${pid}" >/dev/null 2>&1 > fi > if ps -p "${pid}" > /dev/null 2>&1; then > hadoop_error "ERROR: Unable to kill ${pid}" > else > ... > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org