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 DDBB4200D0A for ; Tue, 19 Sep 2017 23:41:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DBF081609BF; Tue, 19 Sep 2017 21:41:04 +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 3625B1609DD for ; Tue, 19 Sep 2017 23:41:04 +0200 (CEST) Received: (qmail 11433 invoked by uid 500); 19 Sep 2017 21:41:03 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 11405 invoked by uid 99); 19 Sep 2017 21:41:03 -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; Tue, 19 Sep 2017 21:41:03 +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 E26AC1A5D3C for ; Tue, 19 Sep 2017 21:41:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 4BZ9PIXUchoa for ; Tue, 19 Sep 2017 21:41:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3EDA55FDE7 for ; Tue, 19 Sep 2017 21:41:01 +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 7707FE0E33 for ; Tue, 19 Sep 2017 21:41:00 +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 3151124504 for ; Tue, 19 Sep 2017 21:41:00 +0000 (UTC) Date: Tue, 19 Sep 2017 21:41:00 +0000 (UTC) From: "Robert Hou (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5478) Spill file size parameter is not honored by the managed external sort MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Sep 2017 21:41:05 -0000 [ https://issues.apache.org/jira/browse/DRILL-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172380#comment-16172380 ] Robert Hou commented on DRILL-5478: ----------------------------------- If this is exposed to Support, then it would be good to have some documentation about how this parameter works. Maybe even just a comment that the parameter is not precise, and depends on the memory. > Spill file size parameter is not honored by the managed external sort > --------------------------------------------------------------------- > > Key: DRILL-5478 > URL: https://issues.apache.org/jira/browse/DRILL-5478 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Relational Operators > Affects Versions: 1.10.0 > Reporter: Rahul Challapalli > Assignee: Paul Rogers > Fix For: 1.12.0 > > > git.commit.id.abbrev=1e0a14c > Query: > {code} > ALTER SESSION SET `exec.sort.disable_managed` = false; > alter session set `planner.width.max_per_node` = 1; > alter session set `planner.disable_exchanges` = true; > alter session set `planner.width.max_per_query` = 1; > alter session set `planner.memory.max_query_memory_per_node` = 1052428800; > alter session set `planner.enable_decimal_data_type` = true; > select count(*) from ( > select * from dfs.`/drill/testdata/resource-manager/all_types_large` d1 > order by d1.map.missing > ) d; > {code} > Boot Options (spill file size is set to 256MB) > {code} > 0: jdbc:drill:zk=10.10.100.190:5181> select * from sys.boot where name like '%spill%'; > +--------------------------------------------------+---------+-------+---------+----------+----------------------------------------------------+-----------+------------+ > | name | kind | type | status | num_val | string_val | bool_val | float_val | > +--------------------------------------------------+---------+-------+---------+----------+----------------------------------------------------+-----------+------------+ > | drill.exec.sort.external.spill.directories | STRING | BOOT | BOOT | null | [ > # drill-override.conf: 26 > "/tmp/test" > ] | null | null | > | drill.exec.sort.external.spill.file_size | STRING | BOOT | BOOT | null | "256M" | null | null | > | drill.exec.sort.external.spill.fs | STRING | BOOT | BOOT | null | "maprfs:///" | null | null | > | drill.exec.sort.external.spill.group.size | LONG | BOOT | BOOT | 40000 | null | null | null | > | drill.exec.sort.external.spill.merge_batch_size | STRING | BOOT | BOOT | null | "16M" | null | null | > | drill.exec.sort.external.spill.spill_batch_size | STRING | BOOT | BOOT | null | "8M" | null | null | > | drill.exec.sort.external.spill.threshold | LONG | BOOT | BOOT | 40000 | null | null | null | > +--------------------------------------------------+---------+-------+---------+----------+----------------------------------------------------+-----------+------------+ > {code} > Below are the spill files while the query is still executing. The size of the spill files is ~34MB > {code} > -rwxr-xr-x 3 root root 34957815 2017-05-05 11:26 /tmp/test/26f33c36-4235-3531-aeaa-2c73dc4ddeb5_major0_minor0_op5_sort/run1 > -rwxr-xr-x 3 root root 34957815 2017-05-05 11:27 /tmp/test/26f33c36-4235-3531-aeaa-2c73dc4ddeb5_major0_minor0_op5_sort/run2 > -rwxr-xr-x 3 root root 0 2017-05-05 11:27 /tmp/test/26f33c36-4235-3531-aeaa-2c73dc4ddeb5_major0_minor0_op5_sort/run3 > {code} > The data set is too large to attach here. Reach out to me if you need anything -- This message was sent by Atlassian JIRA (v6.4.14#64029)