From issues-return-31214-archive-asf-public=cust-asf.ponee.io@geode.apache.org Tue Feb 13 17:59:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C021B180718 for ; Tue, 13 Feb 2018 17:59:04 +0100 (CET) Received: (qmail 44204 invoked by uid 500); 13 Feb 2018 16:59:03 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 44086 invoked by uid 99); 13 Feb 2018 16:59:03 -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; Tue, 13 Feb 2018 16:59:03 +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 4B7701A031F for ; Tue, 13 Feb 2018 16:59:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 92ymJFa63o3r for ; Tue, 13 Feb 2018 16:59:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C082F5F398 for ; Tue, 13 Feb 2018 16:59:01 +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 DFF1EE023D for ; Tue, 13 Feb 2018 16:59:00 +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 59AEB2410E for ; Tue, 13 Feb 2018 16:59:00 +0000 (UTC) Date: Tue, 13 Feb 2018 16:59:00 +0000 (UTC) From: "Barbara Pruijn (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-3876) gfsh command for custom expiry MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-3876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16362655#comment-16362655 ] Barbara Pruijn commented on GEODE-3876: --------------------------------------- Note that enable-statistics option needs to be set on the create region command: {code:java} create region --name=reg1 --entry-idle-time-custom-expiry=MyCustomExpiry --enable-statistics --type=REPLICATE{code} > gfsh command for custom expiry > ------------------------------ > > Key: GEODE-3876 > URL: https://issues.apache.org/jira/browse/GEODE-3876 > Project: Geode > Issue Type: Sub-task > Components: docs, gfsh > Reporter: Swapnil Bawaskar > Priority: Major > Labels: pull-request-available > Fix For: 1.5.0 > > Time Spent: 3.5h > Remaining Estimate: 0h > > When creating or altering a region the ability to add custom expiration is missing. > It would be great to have something like this: > {code:java} > alter/create region --name=regioName [--entry-idle-time-custom-expiry=customExpiryImplementationClassName] > {code} > If the class implementing custom expiry also implements Declarable, we should add support for passing parameters to the init method. > {code:java} > alter/create region --name=regionName --entry-idle-time-custom-expiry=CustomExpiryImplementation{'k':'v','k2':'v2'} > {code} > The two options for custom expiry are: > {code} > --entry-idle-time-custom-expiry=value > --entry-time-to-live-custom-expiry=value > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)