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 86FDA200C36 for ; Fri, 24 Feb 2017 06:33:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 858B8160B78; Fri, 24 Feb 2017 05:33:50 +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 C63F0160B64 for ; Fri, 24 Feb 2017 06:33:49 +0100 (CET) Received: (qmail 38407 invoked by uid 500); 24 Feb 2017 05:33:49 -0000 Mailing-List: contact notifications-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list notifications@asterixdb.apache.org Received: (qmail 38398 invoked by uid 99); 24 Feb 2017 05:33:48 -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; Fri, 24 Feb 2017 05:33:48 +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 6E4DB1A0049 for ; Fri, 24 Feb 2017 05:33:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.546 X-Spam-Level: X-Spam-Status: No, score=-1.546 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GwgQutyK8zKM for ; Fri, 24 Feb 2017 05:33:46 +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 EFACD61C63 for ; Fri, 24 Feb 2017 05:33:45 +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 28435E087E for ; Fri, 24 Feb 2017 05:33:45 +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 3F43024148 for ; Fri, 24 Feb 2017 05:33:44 +0000 (UTC) Date: Fri, 24 Feb 2017 05:33:44 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: notifications@asterixdb.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ASTERIXDB-1796) Job hanging after "no space on device" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Feb 2017 05:33:50 -0000 [ https://issues.apache.org/jira/browse/ASTERIXDB-1796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882005#comment-15882005 ] ASF subversion and git services commented on ASTERIXDB-1796: ------------------------------------------------------------ Commit 34f2384ea66a4b62627cb5a3ff3544b6d4558469 in asterixdb's branch refs/heads/master from [~buyingyi] [ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=34f2384 ] ASTERIXDB-1791, ASTERIXDB-1796: fix failure handling in runtime operators. This change includes the following parts: - Fix the implementation of fail() and close() in several runtime operators to avoid file handle leak and job hang; - Add an erase method to RunFileWriter which closes files before deleting them in order release the holding disk space; - Call RunFileWriter.close() and RunFileReader.close() in "finally" blocks. - Fix RunFileReader to not truncate files to be deleted - it is not the root cause of un-released disk space - open deleted files are the root cuase; - Check file handle leaks in LangExecutionUtil.tearDown(). Change-Id: I203168171e6dac16b57d2eda960823e3810e22a3 Reviewed-on: https://asterix-gerrit.ics.uci.edu/1513 Tested-by: Jenkins Integration-Tests: Jenkins Reviewed-by: Till Westmann > Job hanging after "no space on device" > -------------------------------------- > > Key: ASTERIXDB-1796 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1796 > Project: Apache AsterixDB > Issue Type: Bug > Components: Hyracks Core > Reporter: Yingyi Bu > Assignee: Yingyi Bu > > Setting: > 2 NCs > 1GB RAM per NC > one partition per NC > TPC-H data: 2GB > Query: > {noformat} > USE tpch; > SET `compiler.joinmemory` "8MB" > SET `compiler.groupmemory` "8MB" > SET `compiler.sortmemory` "8MB" > WITH tmp AS > ( > SELECT l_orderkey, SUM(l_quantity) t_sum_quantity > FROM LineItem > GROUP BY l_orderkey > ) > SELECT c.c_name, c.c_custkey, o.o_orderkey, o.o_orderdate, o.o_totalprice, > SUM(l.l_quantity) sum_quantity > FROM LineItem l > JOIN tmp t ON t.l_orderkey = l.l_orderkey > JOIN Orders o ON o.o_orderkey = t.l_orderkey > JOIN Customer c ON c.c_custkey = o.o_custkey > WHERE t.t_sum_quantity > 30 > GROUP BY c.c_name, c.c_custkey, o.o_orderkey, o.o_orderdate, o.o_totalprice > ORDER BY o.o_totalprice DESC, o.o_orderdate > LIMIT 100 > ; > {noformat} > {noformat} > org.apache.hyracks.api.exceptions.HyracksDataException: No space left on device > at org.apache.hyracks.control.nc.Task.pushFrames(Task.java:376) > at org.apache.hyracks.control.nc.Task.run(Task.java:308) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.hyracks.api.exceptions.HyracksDataException: No space left on device > at org.apache.hyracks.control.nc.io.IOManager.syncWrite(IOManager.java:143) > at org.apache.hyracks.dataflow.common.io.RunFileWriter.nextFrame(RunFileWriter.java:60) > at org.apache.hyracks.dataflow.std.buffermanager.VPartitionTupleBufferManager.flushPartition(VPartitionTupleBufferManager.java:285) > at org.apache.hyracks.dataflow.std.join.OptimizedHybridHashJoin.probe(OptimizedHybridHashJoin.java:514) > at org.apache.hyracks.dataflow.std.join.OptimizedHybridHashJoinOperatorDescriptor$ProbeAndJoinActivityNode$1.nextFrame(OptimizedHybridHashJoinOperatorDescriptor.java:405) > at org.apache.hyracks.control.nc.Task.pushFrames(Task.java:360) > ... 4 more > Caused by: java.io.IOException: No space left on device > at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) > at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:66) > at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) > at sun.nio.ch.IOUtil.write(IOUtil.java:65) > at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778) > at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764) > at org.apache.hyracks.control.nc.io.IOManager.syncWrite(IOManager.java:130) > ... 9 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)