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 76C71200C57 for ; Fri, 31 Mar 2017 19:04:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 756A0160B7C; Fri, 31 Mar 2017 17:04:24 +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 942E2160B80 for ; Fri, 31 Mar 2017 19:04:23 +0200 (CEST) Received: (qmail 67412 invoked by uid 500); 31 Mar 2017 17:04:22 -0000 Mailing-List: contact user-help@bookkeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bookkeeper.apache.org Delivered-To: mailing list user@bookkeeper.apache.org Received: (qmail 67391 invoked by uid 99); 31 Mar 2017 17:04:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 17:04:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ECE81188A0C; Fri, 31 Mar 2017 17:04:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2B3j257rCfEL; Fri, 31 Mar 2017 17:04:20 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 29AF45FB5D; Fri, 31 Mar 2017 17:04:20 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id b187so67464542oif.0; Fri, 31 Mar 2017 10:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hf3ejJnmAVAkpiySxf03960rAHNBCca9ZEjuUt47CSI=; b=J9eyy2DdP2zT1tixjPl02a6cUhCb6OA8FPQHF+GN0fP6nc8tgwws1N+0ExSft9J/vk vD3LWLncOTWazOJOx93iDeQB2IofG8BBnZuN7txb0aXcIvXVgJFj6WABM7spxjI+I2ef D3t+zSez3X2PFctNRFaXLCAnqDfuijRtOlBQbdmpLeGr271EK+cOv9pANDMOQ2w4HQJh 7sQn4FS4kMtxK4gpY8cWnrfDqOH9HaGDewTeC+Dp1SpVIXtBMj5wIYyTUG4N7paCCcRs 5TWhi+VUBmb7iAQt8ug/eiF9B22ajWd4b443o+fanybmj1sF4/OAwvGa2Mc/r78ih4aB jFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hf3ejJnmAVAkpiySxf03960rAHNBCca9ZEjuUt47CSI=; b=POOk7M6GbP6nkH1GdgTmcEqiAVg85UgRUwXsBw8U9l9EoWbUeE+5WLB9vq/pde2Tuq 6PqiLLir11AAhKTccBm/bz+5l6kh2J0gaNKXLACMczhQ0cTe6WS58OuogbVbh/yL5IQ5 qZfZgDo8Y0XxIkUOlaRvol2fdTTx4tWUXlfjA/hHieVkr055yH0T3QiLmKa7+yfdW8Iy nHAudmE1FREG/uOuPawYawRhzSg/bSsFWcZoApwy7kG2vHlRQ6v2yuzgQpyDvK9ykI6x ko/vWwVygcubGD2PXdbAjjJoIm1H7G5ndKyVQ7PZRoWh7eXBEThC3KaBhX8foX+XY8V4 sc+g== X-Gm-Message-State: AFeK/H1U4DvQw523J9eXFUkayRuKRYZ9cQIbIFPY87EbX2GiSssXvsVRRWwl+qFc/pKBQ9mat/yk6B+vwnXZyA== X-Received: by 10.202.213.148 with SMTP id m142mr2261840oig.102.1490979858834; Fri, 31 Mar 2017 10:04:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.155.65 with HTTP; Fri, 31 Mar 2017 10:04:18 -0700 (PDT) In-Reply-To: References: From: Sijie Guo Date: Fri, 31 Mar 2017 10:04:18 -0700 Message-ID: Subject: Re: New BookKeeper Proposal "Allow Reads outside the LAC Protocol" To: dev@bookkeeper.apache.org Cc: user@bookkeeper.apache.org Content-Type: multipart/alternative; boundary=001a113b0850da6b29054c09cc94 archived-at: Fri, 31 Mar 2017 17:04:24 -0000 --001a113b0850da6b29054c09cc94 Content-Type: text/plain; charset=UTF-8 After taking a look at the proposal, I am not sure if making it a configuration setting is the right approach. However, I would suggest adding a method called #readUncommittedEntries - it would skip the lac checking. so application can decide whether to use readEntries (to read committed entries) or use readUncommittedEntries (to read potentially *uncommitted* entries. So the correctness is managed by application itself (out side of the logic). - Sijie On Thu, Mar 30, 2017 at 8:55 AM, Sijie Guo wrote: > + dev@ and moved user@ to cc > > On Thu, Mar 30, 2017 at 8:26 AM, Enrico Olivelli > wrote: > >> I would like to share with the community this BookKeeper proposal >> >> https://cwiki.apache.org/confluence/display/BOOKKEEPER/BP-5+ >> Allow+reads+outside+the+LAC+Protocol >> >> I will submit a Pull Request to explain the modifications and provide >> test cases >> >> All comments are welcome >> >> -- Enrico >> > > --001a113b0850da6b29054c09cc94 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
After taking a look at the proposal, I am not sure if maki= ng it a configuration setting is the right approach.

How= ever, I would suggest adding a method called #readUncommittedEntries - it w= ould skip the lac checking. so application can decide whether to use readEn= tries (to read committed entries) or use readUncommittedEntries (to read po= tentially *uncommitted* entries. So the correctness is managed by applicati= on itself (out side of the logic).

- Sijie

On Thu, Mar 3= 0, 2017 at 8:55 AM, Sijie Guo <guosijie@gmail.com> wrote:
+ dev@ and moved user@ to= cc

On Thu, Mar 30, 2017 at 8:26 AM, Enrico Oli= velli <eolivelli@gmail.com> wrote:
I would like to share with the com= munity this BookKeeper proposal

https://cwiki.apache.org/confluence/display/BOOKKEEPER= /BP-5+Allow+reads+outside+the+LAC+Protocol

I wil= l submit a Pull Request to explain the modifications and provide test cases=

All comments are welcome

-- Enri= co


--001a113b0850da6b29054c09cc94--