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 A1798200BF1 for ; Tue, 3 Jan 2017 17:10:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A02D8160B33; Tue, 3 Jan 2017 16:10: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 E1FD5160B48 for ; Tue, 3 Jan 2017 17:09:59 +0100 (CET) Received: (qmail 92884 invoked by uid 500); 3 Jan 2017 16:09:58 -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 92671 invoked by uid 99); 3 Jan 2017 16:09:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2017 16:09:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7CF2A2C2AB8 for ; Tue, 3 Jan 2017 16:09:58 +0000 (UTC) Date: Tue, 3 Jan 2017 16:09:58 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5104) Foreman sets external sort memory allocation even for a physical plan MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 Jan 2017 16:10:00 -0000 [ https://issues.apache.org/jira/browse/DRILL-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Rogers updated DRILL-5104: ------------------------------- Issue Type: Bug (was: Sub-task) Parent: (was: DRILL-5080) > Foreman sets external sort memory allocation even for a physical plan > --------------------------------------------------------------------- > > Key: DRILL-5104 > URL: https://issues.apache.org/jira/browse/DRILL-5104 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.8.0 > Reporter: Paul Rogers > Assignee: Paul Rogers > > Consider the (disabled) unit test {{TestSimpleExternalSort.outOfMemoryExternalSort}} which uses the physical plan {{xsort/oom_sort_test.json}} that contains a setting for the amount of memory to allocate: > {code} > { > ... > pop:"external-sort", > ... > initialAllocation: 1000000, > maxAllocation: 30000000 > }, > {code} > When run, the amount of memory is set to 715827882. The reason is that code was added to {{Foreman}} to compute the memory to allocate to the external sort: > {code} > private void runPhysicalPlan(final PhysicalPlan plan) throws ExecutionSetupException { > validatePlan(plan); > MemoryAllocationUtilities.setupSortMemoryAllocations(plan, queryContext); > {code} > The problem is that a physical plan should execute as provided to enable detailed testing. > To solve this problem, move the sort memory setup to the path taken by SQL queries, but not via physical plans. > This change is necessary to re-enable the previously-disabled external sort tests. -- This message was sent by Atlassian JIRA (v6.3.4#6332)