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 31C28200D61 for ; Tue, 5 Dec 2017 01:06:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3065E160C05; Tue, 5 Dec 2017 00:06:03 +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 4D096160BF9 for ; Tue, 5 Dec 2017 01:06:02 +0100 (CET) Received: (qmail 79456 invoked by uid 500); 5 Dec 2017 00:06:01 -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 79444 invoked by uid 99); 5 Dec 2017 00:06:00 -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, 05 Dec 2017 00:06:00 +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 C26D81A1617 for ; Tue, 5 Dec 2017 00:05:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.801 X-Spam-Level: X-Spam-Status: No, score=-2.801 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=confluent-io.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id dfJ9Bcyd9L6l for ; Tue, 5 Dec 2017 00:05:58 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2D98A5F2FE for ; Tue, 5 Dec 2017 00:05:58 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id j28so9810357pfk.8 for ; Mon, 04 Dec 2017 16:05:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=confluent-io.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:organization:message-id:date:user-agent :mime-version:in-reply-to; bh=uxBE8Sq+JFgssUWalZjTnQGSejcG7u9onT2pYEDtOEs=; b=a2GAx+kVUU8kCEC6PdWppkhWP15+/Oyh2yPkMW9QvASBorljUjCC7+gA7SSp54sogE yagry1dKJhDnCXOyESRkefXpWHEJ74SwAvlxLku9mtR0Dkov7JiJ87rHOv5Qn8QNjGi9 gZjJJ3Jg6i8k/rlQGftjBdXbdoQeoF5PYxYbW/nJ+ogOp9caIQ5AYq2Zy/ijeOZ6EtlV Ncx/OX8wHWBcpmR4J7218lwaOr+1aOnYekpp3CmpC0numCCPG8KmD3Jy26TevSt+XxWe 4tQx5Si2yqkuqAElgyUDl+/bQJ6Jmkb4HiSXT/s2qiHYRTwRqLJWFf09kuJs0WYFsTCB TBUg== 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:organization :message-id:date:user-agent:mime-version:in-reply-to; bh=uxBE8Sq+JFgssUWalZjTnQGSejcG7u9onT2pYEDtOEs=; b=b1JxtLeuo9ACbOWjMYH6t4+OaLxc8gKZbFWF08qQJ9cc8yqIIR/IW3Mq/+32e+02nc PD1L4w8VFIW48m5pZBSag8jBrJAfd0CyRCP/Qo35qiy+rFnmEiTR9Q4d/Ziukg52uzT3 mFEMhFYMGHc2+/hzT++AUWlrNmSR+T3DWrZsmhlky7jte8tU3vOgbk6//849ZZz9h0H8 Qx9DPF0XlPe0mPNFTGWKg4bAIvRsaBB1YZGOlekvmM40p7INTj1fo9fWkgGZwiKB85O7 HjoXWeKycPtyhQ6TSlmWbh60oENlj8xjqeCcmO8YembU163UG7StAiLzgiPGiKo5gNv0 rLfg== X-Gm-Message-State: AJaThX4W3DSctQhnFjV4CVcVYVmfNwylrr5HeWoQy+nEZHH+DHb9gD+K WecKD047HgNN5q4JlAyjDw58CIvYORM= X-Google-Smtp-Source: AGs4zMauF/arJ+s0KVBuBbZ+Dvu934KYi5yEvfujzjE68Z7IFKjGlwYSU3FbTZiQvm7FT6FvTfFF3A== X-Received: by 10.99.116.17 with SMTP id p17mr15196986pgc.385.1512432356911; Mon, 04 Dec 2017 16:05:56 -0800 (PST) Received: from Matthias-Sax-Macbook-Pro.local (50-0-2-20.static.sonic.net. [50.0.2.20]) by smtp.gmail.com with ESMTPSA id p87sm25288662pfi.95.2017.12.04.16.05.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 16:05:56 -0800 (PST) Subject: Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors To: dev@kafka.apache.org References: <49cf37a0-6e03-9571-7d0f-ec2edad572b0@confluent.io> From: "Matthias J. Sax" Organization: Confluent Inc Message-ID: Date: Mon, 4 Dec 2017 16:05:55 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rv2JKD2247MjuEaOHvKsPxi1DKliV55J5" archived-at: Tue, 05 Dec 2017 00:06:03 -0000 --rv2JKD2247MjuEaOHvKsPxi1DKliV55J5 Content-Type: multipart/mixed; boundary="I19sjnP0bnRhHakSEDCcesh3hCILVNjPl"; protected-headers="v1" From: "Matthias J. Sax" To: dev@kafka.apache.org Message-ID: Subject: Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors References: <49cf37a0-6e03-9571-7d0f-ec2edad572b0@confluent.io> In-Reply-To: --I19sjnP0bnRhHakSEDCcesh3hCILVNjPl Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Vito, is there any update with regard to this KIP? -Matthias On 11/5/17 6:11 PM, vito jeng wrote: > Thanks, Guozhang and Matthias. Your comments very useful for me. >=20 > I'll update KIP and keep going on. >=20 >=20 >=20 > --- > Vito >=20 > On Sun, Nov 5, 2017 at 12:30 AM, Matthias J. Sax > wrote: >=20 >> Thanks for the KIP Vito! >> >> I agree with what Guozhang said. The original idea of the Jira was, to= >> give different exceptions for different "recovery" strategies to the u= ser. >> >> For example, if a store is currently recreated, a user just need to wa= it >> and can query the store later. On the other hand, if a store go migrat= ed >> to another instance, a user needs to rediscover the store instead of a= >> "plain retry". >> >> Fatal errors might be a third category. >> >> Not sure if there is something else? >> >> Anyway, the KIP should contain a section that talks about this ideas a= nd >> reasoning. >> >> >> -Matthias >> >> >> On 11/3/17 11:26 PM, Guozhang Wang wrote: >>> Thanks for writing up the KIP. >>> >>> Vito, Matthias: one thing that I wanted to figure out first is what >>> categories of errors we want to notify the users, if we only wants to= >>> distinguish fatal v.s. retriable then probably we should rename the >>> proposed StateStoreMigratedException / StateStoreClosedException clas= ses. >>> And then from there we should list what are the possible internal >>> exceptions ever thrown in those APIs in the call trace, and which >>> exceptions should be wrapped to what others, and which ones should be= >>> handled without re-throwing, and which ones should not be wrapped at = all >>> but directly thrown to user's face. >>> >>> Guozhang >>> >>> >>> On Wed, Nov 1, 2017 at 11:09 PM, vito jeng wrot= e: >>> >>>> Hi, >>>> >>>> I'd like to start discuss KIP-216: >>>> >>>> https://cwiki.apache.org/confluence/display/KAFKA/KIP- >>>> 216%3A+IQ+should+throw+different+exceptions+for+different+errors >>>> >>>> Please have a look. >>>> Thanks! >>>> >>>> --- >>>> Vito >>>> >>> >>> >>> >> >> >=20 --I19sjnP0bnRhHakSEDCcesh3hCILVNjPl-- --rv2JKD2247MjuEaOHvKsPxi1DKliV55J5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJKBAEBCgA0FiEEFpAnjJ4fbvgzKNUmjQjbao0qTDYFAlol4uMWHG1hdHRoaWFz QGNvbmZsdWVudC5pbwAKCRCNCNtqjSpMNieOD/9kToksiXrfgvIdPt+V8wIVaFL3 S5wBVCQnITLf1npbTjEq6mhqT8KunVSB45czVgIjyphwksiL8jyG958Cg62d/CWx 2U4FsKzdlTcO8cE62e+jxPxjxtkq6j2yOl22B/75v9iOeB7vEVUAI5PicUxL2gSc zJHrGoZKlXF9LVDP3IPMGrujZn1xUaCBWAt/MBrT1B3NzohWlkqI0PvrFx5nkdMd aRsTNQGr9JJAhe2Lk4AG8/kACdMDdfNw9o5SK26vKXm8Cz/vS2iaDtBn3tVQNNzh A0bXySV/WOuiKpDBcXVchM3bpaB1nhCERrmv/PBbW974m1AIzC5sIN+b86tHI6+D gl/vuJpximMdqyhGccvq2TPpti6aLNzCIlrl4vQERoTrVA3PmxaS2lIAOiBrOLCJ rtY1CIgwFelnZbuG1SvglxBCMH6+X1qFAUBKeUlHBNIQNX9kkJFWENjnEyZZj53t UZGvzP+MPlk1Mhsln0QUSUIWj+3ZrobeLhr7DnE9Qa47qMd20FcpQNHumneKdE5g JnnhAdboe7ykLsgAfdXEivPIeRjLWibEjHKZ4rl5oeB9iaolxUKTUnJrNV8ScMI3 +l/0ntnet5Ek41k4VxG/5UdvoCla1YDUbNZLpMaGzOD5LM3U8SAo6d6drjdrMcF8 juwlGlR3UxZ1zFZAxQ== =EKzk -----END PGP SIGNATURE----- --rv2JKD2247MjuEaOHvKsPxi1DKliV55J5--