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 9CC35200C73 for ; Wed, 10 May 2017 21:25:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9B679160B9C; Wed, 10 May 2017 19:25:58 +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 E1C7C160B99 for ; Wed, 10 May 2017 21:25:57 +0200 (CEST) Received: (qmail 71142 invoked by uid 500); 10 May 2017 19:25:55 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 71126 invoked by uid 99); 10 May 2017 19:25:53 -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; Wed, 10 May 2017 19:25:53 +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 77156CD9DA for ; Wed, 10 May 2017 19:25:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 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, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=openbet.com 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 SHa8PSxB_wDU for ; Wed, 10 May 2017 19:25:50 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 890925FBB8 for ; Wed, 10 May 2017 19:25:50 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id u65so15368761wmu.1 for ; Wed, 10 May 2017 12:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openbet.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=V+//LD4Pmvo7gSuD8s5LRPI9xWJoNfFyNxELZMVbXn0=; b=mNNVhchcI9x6uIobVfZ8K0esQ707vt4cx7EDtQRFtU4xfp7joUPrjbviFDSueWYZgK Pq3tupqxbk0afiaIT/YmA3IlycG8QFAZe7iuHKEZzhTma0y6sMnLglJgcUssJe32GuxU pxzYc7EmafBMMSM1vV0bhormTZDH/3Y9sDse8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=V+//LD4Pmvo7gSuD8s5LRPI9xWJoNfFyNxELZMVbXn0=; b=ADCbURdCQut45q7j2C2srXAy+fV9qnIge6iVK4/4rqQ7CTN1pwbBbnq8LIIOusveRF xk4ZHtdmKm0qO+xePQ2jb5fyRmC8j6oGFRhlv0GqLEqEEODNzs8wJnYliTQqmJklZ3cf 0p/D7IF6m89dBTLVsy3V6CIsmJrO/2XP1Ef6hJnGD09UYdLp3v1Fp61IxURIBY6E7X9U io4BWjXVhLraNdgDi7FSJjdNLW9FToT4Kqtva6agkh4iOmRSzPOy0Gj+MtVPXMPDowz1 fToZEmlrRbuG8SlPloiV1+FPE/WlQdLha7pL4BPVK2h03EwOuQzNOWiLvW9/jELSSDrb vyJw== X-Gm-Message-State: AODbwcCwb57seCuiv3X64uyAhuBkGIL+BhBzwiZuyifb05jK8lQWwGdf ZPmXTKpKf2HQHHjEwzCniquYLL0XlR+ZQxuFA7J9lM0StHteM4ECtEYEmD9vCPfX+8ELmSnjWgs /rtZ2iymTZdAEekR0VHY0KnINOr3xXzyAUwfAJrTIiINrVULRvo1k2K0dOy/9T9yCGUqBGIo= X-Received: by 10.28.23.198 with SMTP id 189mr4862145wmx.38.1494444349077; Wed, 10 May 2017 12:25:49 -0700 (PDT) Received: from [10.209.193.194] ([31.221.87.88]) by smtp.gmail.com with ESMTPSA id u4sm4027391wmu.0.2017.05.10.12.25.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 12:25:48 -0700 (PDT) Subject: Re: [VOTE] KIP-155 Add range scan for windowed state stores To: dev@kafka.apache.org References: From: Michal Borowiecki Message-ID: Date: Wed, 10 May 2017 20:25:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E1BB3F3BB22F5585E1D8DEF7" archived-at: Wed, 10 May 2017 19:25:58 -0000 --------------E1BB3F3BB22F5585E1D8DEF7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Apologies, I missed the discussion (or lack thereof) about the return type of: WindowStoreIterator> fetch(K from, K to, long timeFrom, long timeTo) WindowStoreIterator (as the KIP mentions) is a subclass of KeyValueIterator KeyValueIterator has the following method: /** * Peek at the next key without advancing the iterator * @return the key of the next value that would be returned from the next call to next */ K peekNextKey(); Given the type in this case will be Long, I assume what it would return is the window timestamp of the next found record? In the case of WindowStoreIterator fetch(K key, long timeFrom, long timeTo); all records found by fetch have the same key, so it's harmless to return the timestamp of the next found window but here we have varying keys and varying windows, so won't it be too confusing? KeyValueIterator, V> (as in the proposed ReadOnlySessionStore.fetch) just feels much more intuitive. Apologies again for jumping onto this only once the voting has already begun. Thanks, Michał On 10/05/17 20:08, Sriram Subramanian wrote: > +1 > > On Wed, May 10, 2017 at 11:42 AM, Bill Bejeck wrote: > >> +1 >> >> Thanks, >> Bill >> >> On Wed, May 10, 2017 at 2:38 PM, Guozhang Wang wrote: >> >>> +1. Thank you! >>> >>> On Wed, May 10, 2017 at 11:30 AM, Xavier Léauté >>> wrote: >>> >>>> Hi everyone, >>>> >>>> Since there aren't any objections to this addition, I would like to >> start >>>> the voting on KIP-155 so we can hopefully get this into 0.11. >>>> >>>> https://cwiki.apache.org/confluence/display/KAFKA/KIP+ >>>> 155+-+Add+range+scan+for+windowed+state+stores >>>> >>>> Voting will stay active for at least 72 hours. >>>> >>>> Thank you, >>>> Xavier >>>> >>> >>> >>> -- >>> -- Guozhang >>> --------------E1BB3F3BB22F5585E1D8DEF7--