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 DFDB2200BFB for ; Wed, 7 Dec 2016 02:18:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DE533160B53; Wed, 7 Dec 2016 01:18: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 3B59B160B4F for ; Wed, 7 Dec 2016 02:18:00 +0100 (CET) Received: (qmail 45720 invoked by uid 500); 7 Dec 2016 01:17:59 -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 45691 invoked by uid 99); 7 Dec 2016 01:17:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 01:17:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DD66C2C03DF for ; Wed, 7 Dec 2016 01:17:58 +0000 (UTC) Date: Wed, 7 Dec 2016 01:17:58 +0000 (UTC) From: "Paul Rogers (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-5112) Unit tests derived from PopUnitTestBase fail in IDE due to config errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Dec 2016 01:18:01 -0000 Paul Rogers created DRILL-5112: ---------------------------------- Summary: Unit tests derived from PopUnitTestBase fail in IDE due to config errors Key: DRILL-5112 URL: https://issues.apache.org/jira/browse/DRILL-5112 Project: Apache Drill Issue Type: Bug Affects Versions: 1.8.0 Reporter: Paul Rogers Assignee: Paul Rogers Drill provides a wide variety of unit tests. Many derive from {{PopUnitTestBase}} to test the Physical OPerators. The tests use a default configuration: {code} protected static DrillConfig CONFIG; @BeforeClass public static void setup() { CONFIG = DrillConfig.create(); } {code} The default config tries to locate a {{drill-override.conf}} file somewhere on the class path. When run in Eclipse, no such file exists. Instead, no override file is found and defaults are used. The defaults allow a web server to be started. Many tests start multiple Drillbits using the above config. When this occurs, each tries to start a web server. The second one fails because the HTTP port is already in use. It is not clear how these tests succeed when run from Maven. Perhaps in that scenario the required file is somehow placed onto the class path? No such file exists in the source path. The solution is to initialize the config using the same settings as used in the {{BaseTestQuery}} test case: the unit tests then work fine in Eclipse. As an aside, having multiple ways to set up the Drill config (and other items) leads to much wasted time as each engineer must learn the quirks of each test hierarchy. -- This message was sent by Atlassian JIRA (v6.3.4#6332)