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 01E0D200C81 for ; Fri, 12 May 2017 00:33:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0053E160BCA; Thu, 11 May 2017 22:33:15 +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 44621160BC7 for ; Fri, 12 May 2017 00:33:14 +0200 (CEST) Received: (qmail 24319 invoked by uid 500); 11 May 2017 22:33:07 -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 24307 invoked by uid 99); 11 May 2017 22:33:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 May 2017 22:33:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C87C4CECD4 for ; Thu, 11 May 2017 22:33:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id BoUZXHRyC9Uv for ; Thu, 11 May 2017 22:33:06 +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 C8D335FCAC for ; Thu, 11 May 2017 22:33:05 +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 1A2CBE0D22 for ; Thu, 11 May 2017 22:33:05 +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 657CC21E0E for ; Thu, 11 May 2017 22:33:04 +0000 (UTC) Date: Thu, 11 May 2017 22:33:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5481) Allow Drill to persist profiles in-memory only with a max capacity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 11 May 2017 22:33:15 -0000 [ https://issues.apache.org/jira/browse/DRILL-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16007313#comment-16007313 ] ASF GitHub Bot commented on DRILL-5481: --------------------------------------- Github user sudheeshkatkam commented on a diff in the pull request: https://github.com/apache/drill/pull/827#discussion_r116116596 --- Diff: exec/java-exec/src/main/resources/drill-module.conf --- @@ -138,7 +138,10 @@ drill.exec: { class: "org.apache.drill.exec.store.sys.store.provider.ZookeeperPersistentStoreProvider", local: { path: "/tmp/drill", - write: true + inmemory: { + write: false, + capacity: 1000 --- End diff -- Remove this line, otherwise `if (config.hasPath(ExecConstants.SYS_STORE_CAPACITY_PROFILES))` is always true. > Allow Drill to persist profiles in-memory only with a max capacity > ------------------------------------------------------------------ > > Key: DRILL-5481 > URL: https://issues.apache.org/jira/browse/DRILL-5481 > Project: Apache Drill > Issue Type: Improvement > Affects Versions: 1.10.0 > Reporter: Kunal Khatua > Assignee: Kunal Khatua > > To allow for fast persistence of profiles on a temporary basis (i.e. till the life of the Drillbit), an existing test class {{org.apache.drill.exec.testing.store.NoWriteLocalStore.java}} was refactored to {{org.apache.drill.exec.store.sys.store.EphemeralPersistentStore}} and given the ability to maintain a max capacity. > This should allow query profiles to be available for as long as the Drillbit process' lifespan. -- This message was sent by Atlassian JIRA (v6.3.15#6346)