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 54BD5200BBD for ; Tue, 8 Nov 2016 20:23:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 53830160B0A; Tue, 8 Nov 2016 19:23:54 +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 8D5B1160AD0 for ; Tue, 8 Nov 2016 20:23:53 +0100 (CET) Received: (qmail 41191 invoked by uid 500); 8 Nov 2016 19:23:52 -0000 Mailing-List: contact dev-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 dev@drill.apache.org Received: (qmail 41180 invoked by uid 99); 8 Nov 2016 19:23:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 19:23:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4D6BAE0999; Tue, 8 Nov 2016 19:23:52 +0000 (UTC) From: paul-rogers To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill issue #647: DRILL-4935 Allow Drill to advertise a specific hostname to... Content-Type: text/plain Message-Id: <20161108192352.4D6BAE0999@git1-us-west.apache.org> Date: Tue, 8 Nov 2016 19:23:52 +0000 (UTC) archived-at: Tue, 08 Nov 2016 19:23:54 -0000 Github user paul-rogers commented on the issue: https://github.com/apache/drill/pull/647 Two ways to test. First, try the fix manually. Start Drill once without the env var set to ensure Drill uses the default. Then, set the env var and ensure that Drill uses the correct value. Second, would be a unit test. I'm not familiar with any existing ZK unit tests. Do any of the other committers know if we have such tests? Something that validates Drillbit registration, etc? If so, then that test can be modified for this use case. But, there is one gotcha: in Java, env vars are read-only, there is no way to set env vars in a test (that I've ever found.) Anyone have a work-around? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---