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 2B44E200CFD for ; Wed, 6 Sep 2017 13:38:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 29F751609DB; Wed, 6 Sep 2017 11:38:11 +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 711781609B8 for ; Wed, 6 Sep 2017 13:38:10 +0200 (CEST) Received: (qmail 93449 invoked by uid 500); 6 Sep 2017 11:38:08 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 93440 invoked by uid 99); 6 Sep 2017 11:38:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 11:38:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 220AFD5F26 for ; Wed, 6 Sep 2017 11:38:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9n_qx-Bv4x5w for ; Wed, 6 Sep 2017 11:38:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E5F845F27D for ; Wed, 6 Sep 2017 11:38:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EAEF6E0EFC for ; Wed, 6 Sep 2017 11:38:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 015F72416F for ; Wed, 6 Sep 2017 11:38:01 +0000 (UTC) Date: Wed, 6 Sep 2017 11:38:01 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-1562) Spark-sql deadlock in logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Sep 2017 11:38:11 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16155225#comment-16155225 ] ASF subversion and git services commented on AIRFLOW-1562: ---------------------------------------------------------- Commit 32750601ad0a422283613bf7fccff8eb5407bc9c in incubator-airflow's branch refs/heads/master from [~Fokko] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=3275060 ] [AIRFLOW-1562] Spark-sql logging contains deadlock Logging in SparkSqlOperator does not work as intended. Spark-sql internally redirects all logs to stdout (including stderr), which causes the current two iterator logging to get stuck with the stderr pipe. This situation can lead to a deadlock because the std-err can grow too big and it will start to block until it will be consumed, which will only happen when the process ends, so the process stalls. Closes #2563 from Fokko/AIRFLOW-1562-Spark-sql- loggin-contains-deadlock > Spark-sql deadlock in logging > ----------------------------- > > Key: AIRFLOW-1562 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1562 > Project: Apache Airflow > Issue Type: Bug > Components: hooks > Affects Versions: Airflow 1.8 > Reporter: Fokko Driesprong > > Related to Issue 1255 > Logging in SparkSqlOperator does not work as intended (continuous logging as received in the subprocess). This is because, spark-sql internally redirects all logs to stdout (including stderr), which causes the current two iterator logging to get stuck with empty stderr pipe. Also this situation can lead to a deadlock because the std-err can grow too big and it will start to block until it gets consumed, which will only happen when the process ends, so the process stalls. -- This message was sent by Atlassian JIRA (v6.4.14#64029)