From dev-return-32462-archive-asf-public=cust-asf.ponee.io@geode.apache.org Thu Nov 14 18:27:46 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id C9EBA180607 for ; Thu, 14 Nov 2019 19:27:45 +0100 (CET) Received: (qmail 14032 invoked by uid 500); 14 Nov 2019 18:27:45 -0000 Mailing-List: contact dev-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 dev@geode.apache.org Received: (qmail 14019 invoked by uid 99); 14 Nov 2019 18:27:44 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2019 18:27:44 +0000 Received: from Udos-MacBook-Pro.local (50-203-225-134-static.hfc.comcastbusiness.net [50.203.225.134]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id 5B6FF1004 for ; Thu, 14 Nov 2019 18:27:44 +0000 (UTC) Subject: Re: Odg: gateway sender queue To: dev@geode.apache.org References: From: Udo Kohlmeyer Message-ID: <1de61b7e-6823-d197-5353-6a453a0d5176@apache.com> Date: Thu, 14 Nov 2019 10:27:43 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US In addition... making is default has bigger consequences that we have not thought about.. e.g if you purge an existing queue on start up.. is this the start up of the server node / GS Queue? Given that we have shared-nothing architecture, purging *should* only be local and not cluster-wide... I'd be interested and see a proposal on this feature. --Udo On 11/14/19 10:24 AM, Jason Huynh wrote: > +1 to Dan's suggestion > > On Thu, Nov 14, 2019 at 9:52 AM Dan Smith wrote: > >> I'm ok with adding a --cleanQueue option. >> >> However, I don't think it should default to be true, since that would be >> changing the behavior of the existing command. It should default to false. >> >> -Dan >> >> On Thu, Nov 14, 2019 at 9:28 AM Xiaojian Zhou wrote: >> >>> The --cleanQueue option is a similar idea as Barry's "DeadLetter" spike. >> I >>> remembered that we decided not to do it. >>> >>> >>> On Wed, Nov 13, 2019 at 11:41 PM Mario Ivanac >>> wrote: >>> >>>> Hi, >>>> >>>> just to remind you on last question: >>>> >>>> what is your opinion on adding additional option in gfsh command >> "start >>>> gateway sender" >>>> to control clearing of existing queues --cleanQueues. >>>> >>>> This option will indicate, when gateway sender is started, should we >>>> discard/clean existing queue, or should we use existing queue. >>>> By default it will be to discard/clean existing queue. >>>> >>>> Best Regards, >>>> Mario >>>> ________________________________ >>>> Šalje: Mario Ivanac >>>> Poslano: 8. studenog 2019. 13:00 >>>> Prima: dev@geode.apache.org >>>> Predmet: Odg: gateway sender queue >>>> >>>> Hi all, >>>> >>>> one more clarification regarding 3rd question: >>>> >>>> "* Could we add extra option in gfsh command "start gateway sender" >>>> that allows to control queues reset (for instance --cleanQueues)" >>>> >>>> This option will indicate, when gateway sender is started, should we >>>> discard/clean existing queue, or should we use existing queue. >>>> By default it will be to discard/clean existing queue. >>>> >>>> Best Regards, >>>> Mario >>>> ________________________________ >>>> Šalje: Mario Ivanac >>>> Poslano: 7. studenog 2019. 9:01 >>>> Prima: Dan Smith ; dev@geode.apache.org < >>>> dev@geode.apache.org> >>>> Predmet: Odg: gateway sender queue >>>> >>>> Hi, >>>> >>>> thanks for answers. >>>> >>>> Some more details regarding 1st question. >>>> >>>> Is this behavior same (for serial and parallel gateway sender) in case >>>> queue is persistent? >>>> Meaning, should queue (persistent) be purged if we restart gateway >>> sender? >>>> >>>> Thanks, >>>> Mario >>>> >>>> ________________________________ >>>> Šalje: Dan Smith >>>> Poslano: 5. studenog 2019. 18:52 >>>> Prima: dev@geode.apache.org >>>> Predmet: Re: gateway sender queue >>>> >>>> Some replies, inline: >>>> >>>> * During testing we have observed, different behavior in parallel >> and >>>>> serial gateway senders. In case we manually stop, than start gateway >>>>> senders, for parallel gateway senders, queue is purged, but for >> serial >>>>> gateway senders this is not the case. Is this normal behavior or bug? >>>>> >>>> Hmm, I also think stop is supposed to clear the queue. I think if you >> are >>>> seeing that it doesn't clear the queue, that might be a bug. >>>> >>>> >>>> >>>>> * What happens with the queues when whole cluster is stopped and >>>> later >>>>> started (In our tests with persistent queues, the events are kept)? >>>>> >>>> Persistent queues will keep all of the events when you restart. >>>> >>>> >>>>> * Could we add extra option in gfsh command "start gateway >> sender" >>>>> that allows to control queues reset (for instance --cleanQueues)? >>>>> >>>> If stop does clear the queue, would this be needed? It might still be >>>> reasonable - I've heard folks request a way to clear running queues as >>>> well. >>>> >>>> -Dan >>>>