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 F3BCF200C03 for ; Sat, 21 Jan 2017 15:21:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E7E64160B4A; Sat, 21 Jan 2017 14:21:49 +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 630BC160B3C for ; Sat, 21 Jan 2017 15:21:49 +0100 (CET) Received: (qmail 13419 invoked by uid 500); 21 Jan 2017 14:21:48 -0000 Mailing-List: contact dev-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list dev@asterixdb.apache.org Received: (qmail 13408 invoked by uid 99); 21 Jan 2017 14:21:48 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2017 14:21:48 +0000 Received: from [10.5.3.234] (unknown [198.203.28.43]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 4190E1A018B for ; Sat, 21 Jan 2017 14:21:46 +0000 (UTC) From: "Till Westmann" To: dev@asterixdb.apache.org Subject: Re: Force LSM component flush & NC-CC messaging ACK Date: Sat, 21 Jan 2017 15:21:39 +0100 Message-ID: In-Reply-To: <762E586A-AF87-4EA9-B159-AB7299C3256A@gmail.com> References: <762E586A-AF87-4EA9-B159-AB7299C3256A@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (1.9.6r5319) archived-at: Sat, 21 Jan 2017 14:21:50 -0000 Hi Ildar, On 19 Jan 2017, at 4:02, Ildar Absalyamov wrote: > Since I was out for quite a while and a lot of things happened in a > meantime in a codebase I wanted to clarify couple of things. > > I was wondering if there is any legitimate way to force the data of > in-memory components to be flushed, other then stop the whole > instance? > It used to be that choosing a different default dataverse with > “use” statement did that trick, but that is not the case anymore. Just wondering, why do you want to flush the in-memory components to disk? > Another question is regarding CC<->NC & NC<->NC messaging. Does the > sender get some kind of ACK that the message was received by the > addressee? Say if I send a message just before the instance shutdown > will the shutdown hook wait until the message is delivered and > processed? I agree with Murtadha, that I can certainly be done. However, we also need to assume that some shutdowns won’t be clean and so the messages might not be received. So it might be easier to just be able to recover from missing messages than to be able to recover *and* to synchronize on shutdown. Just a thought - maybe that’s not even an issue for your use-case. Cheers, Till