Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 956FF10669 for ; Wed, 19 Nov 2014 17:40:00 +0000 (UTC) Received: (qmail 91095 invoked by uid 500); 19 Nov 2014 17:40:00 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 91059 invoked by uid 500); 19 Nov 2014 17:40:00 -0000 Mailing-List: contact issues-help@drill.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.incubator.apache.org Delivered-To: mailing list issues@drill.incubator.apache.org Received: (qmail 91046 invoked by uid 99); 19 Nov 2014 17:40:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2014 17:40:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 19 Nov 2014 17:39:37 +0000 Received: (qmail 88869 invoked by uid 99); 19 Nov 2014 17:39:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2014 17:39:35 +0000 Date: Wed, 19 Nov 2014 17:39:35 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1744) Many unit tests fail when run outside Maven (e.g., in Eclipse) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DRILL-1744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1744: ---------------------------------- Priority: Minor (was: Major) > Many unit tests fail when run outside Maven (e.g., in Eclipse) > -------------------------------------------------------------- > > Key: DRILL-1744 > URL: https://issues.apache.org/jira/browse/DRILL-1744 > Project: Apache Drill > Issue Type: Bug > Reporter: Daniel Barclay (Drill/MapR) > Priority: Minor > > Many of the JUnit unit tests fail when run in Eclipse even though they seem to work when run using Maven. > It seems that some of the setup required to run the tests is missing from the test classes and is only in the Maven configuration. > (To confirm that it's not Eclipse-specific, I tried checking using the plain JUnit test runner from the command line, but don't know what all to put in the classpath (e.g., to eliminate errors such as "java.lang.SecurityException: Invalid signature file digest for Manifest main attributes").) > In invoking "Run As" . "JUnit Test" on drill-java-exec, 48 of 375 test methods fail with errors. (None fail assertions.) The status of the remaining 215 isn't clear; an out-of-memory failure hangs the JUnit run. > In drill-jdbc, 125 of the 153 tests yield errors. > In drill-storage-hbase, most tests yield errors. > In drill-common, in CheckStorageConfig, one test fails with an error and the other fails an assertion. > The drill-jdbc failures seem to be because the tests don't disable the Jetty server. (Running some test method individually works, and running multiple tests yields BindExceptions for all but the first.) > Strangely, running org.apache.drill.exec.physical.impl.TopN.TestSimpleTopN by itself also yields a BindException. > The tests should probably be written so that they run in environments other than a Maven run (e.g., in common JUnit runners) as much as possible. > Any settings that can't be configured in the tests (e.g., JVM memory settings?) should be documented somewhere (maybe in the Developing Drill pages of the wiki, maybe somewhere in the code). (Possibly some code should check Runtime.getRuntime().maxMemory() and warn when appropriate.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)