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 1125B200D04 for ; Mon, 11 Sep 2017 19:12:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0FCDD1609C6; Mon, 11 Sep 2017 17:12:08 +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 5ECCE1609B7 for ; Mon, 11 Sep 2017 19:12:07 +0200 (CEST) Received: (qmail 15246 invoked by uid 500); 11 Sep 2017 17:12:05 -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 15237 invoked by uid 99); 11 Sep 2017 17:12:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Sep 2017 17:12:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id AC1A11A0AB2 for ; Mon, 11 Sep 2017 17:12:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FzIvdfeHvWIn for ; Mon, 11 Sep 2017 17:12:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 197225FE16 for ; Mon, 11 Sep 2017 17:12:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BC094E0EB1 for ; Mon, 11 Sep 2017 17:12:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 80B222415D for ; Mon, 11 Sep 2017 17:12:00 +0000 (UTC) Date: Mon, 11 Sep 2017 17:12:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5723) Support System/Session Internal Options And Additional Option System Fixes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 11 Sep 2017 17:12:08 -0000 [ https://issues.apache.org/jira/browse/DRILL-5723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16161594#comment-16161594 ] ASF GitHub Bot commented on DRILL-5723: --------------------------------------- Github user ilooner commented on a diff in the pull request: https://github.com/apache/drill/pull/923#discussion_r138132972 --- Diff: exec/java-exec/src/test/java/org/apache/drill/test/RestClientFixture.java --- @@ -0,0 +1,117 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.drill.test; + +import com.google.common.base.Preconditions; +import org.apache.drill.exec.ExecConstants; +import org.apache.drill.exec.server.rest.StatusResources; +import org.glassfish.jersey.client.ClientConfig; +import org.glassfish.jersey.client.JerseyClientBuilder; + +import javax.annotation.Nullable; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.WebTarget; +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.MediaType; + +import java.util.List; + +/** + * Represents a client for the Drill Rest API. + */ +public class RestClientFixture implements AutoCloseable { + /** + * A builder for the rest client. + */ + public static class Builder { + private ClusterFixture cluster; + + public Builder(ClusterFixture cluster) { + this.cluster = Preconditions.checkNotNull(cluster); + } + + public RestClientFixture build() { + return new RestClientFixture(cluster); + } + } + + private WebTarget baseTarget; + private Client client; --- End diff -- done > Support System/Session Internal Options And Additional Option System Fixes > -------------------------------------------------------------------------- > > Key: DRILL-5723 > URL: https://issues.apache.org/jira/browse/DRILL-5723 > Project: Apache Drill > Issue Type: New Feature > Reporter: Timothy Farkas > Assignee: Timothy Farkas > > This is a feature proposed by [~ben-zvi]. > Currently all the options are accessible by the user in sys.options. We would like to add internal options which can be altered, but are not visible in the sys.options table. These internal options could be seen by another alias select * from internal.options. The intention would be to put new options we weren't comfortable with exposing to the end user in this table. > After the options and their corresponding features are considered stable they could be changed to appear in the sys.option table. > A bunch of other fixes to the Option system have been clubbed into this: > * OptionValidators no longer hold default values. Default values are contained in the SystemOptionManager > * Options have an OptionDefinition. The option definition includes: > * A validator > * Metadata about the options visibility, required permissions, and the scope in which it can be set. > * The Option Manager interface has been cleaned up so that a Type is not required to be passed in in order to set and delete options -- This message was sent by Atlassian JIRA (v6.4.14#64029)