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 51A5E200CD1 for ; Wed, 12 Jul 2017 01:54:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 50195166379; Tue, 11 Jul 2017 23:54:56 +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 96F581661EB for ; Wed, 12 Jul 2017 01:54:55 +0200 (CEST) Received: (qmail 13273 invoked by uid 500); 11 Jul 2017 23:54:50 -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 12007 invoked by uid 99); 11 Jul 2017 23:54:49 -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, 11 Jul 2017 23:54:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2C6ACF552E; Tue, 11 Jul 2017 23:54:49 +0000 (UTC) From: paul-rogers To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #868: DRILL-5547:Linking config options with system optio... Content-Type: text/plain Message-Id: <20170711235449.2C6ACF552E@git1-us-west.apache.org> Date: Tue, 11 Jul 2017 23:54:49 +0000 (UTC) archived-at: Tue, 11 Jul 2017 23:54:56 -0000 Github user paul-rogers commented on a diff in the pull request: https://github.com/apache/drill/pull/868#discussion_r126832436 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/server/options/SystemOptionManager.java --- @@ -48,11 +50,46 @@ * Only one instance of this class exists per drillbit. Options set at the system level affect the entire system and * persist between restarts. */ + +/** + * Drill has two different config systems each with its own namespace.First being the HOCON based boot time config + * system.This is a hierarchical system where the top layers override the bottom ones in the following order + * + * Java System Options + * distrib.conf + * drill-override.conf + * drill-module.conf + * + * These are the options that are set before the drill starts.But once drill starts System or session options can be + * modified using ALTER SYSTEM/SESSION.Even this system provides inheritance sytle in the following order + + * Session options + * System options + * Hardcoded defaults + + * But system/session options have a validator and the validator has a hard coded default value for every option. In --- End diff -- This description would be great as a comment for the pull request. Now, image that this code is committed to Drill, and someone reads this a year from now. By then, the comment will be describing ancient history. We can see that this kind of comment should describe the system the way it is (or will be) after this change without need to reference history. For those who might be familiar with the old way, we often point them to the JIRA that describes the change. Example: "Default for system properties are externalized to the boot-time config file. See DRILL-5547. ..." --- 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. ---