Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2017-12-20 Thread vito jeng
osedException classes. > > 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 wh

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2017-11-05 Thread vito jeng
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 <v...@is-

[DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2017-11-02 Thread vito jeng
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

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2017-12-06 Thread vito jeng
Thank you for your attention to this KIP and assistance. --- Vito On Wed, Dec 6, 2017 at 2:35 PM, Matthias J. Sax <matth...@confluent.io> wrote: > Thanks for the info. There is no hurry. Was just curious :) > > -Matthias > > > On 12/5/17 7:34 PM, vito jeng wrote: >

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2017-12-05 Thread vito jeng
> > > -Matthias > > On 11/5/17 6:11 PM, vito jeng wrote: > > Thanks, Guozhang and Matthias. Your comments very useful for me. > > > > I'll update KIP and keep going on. > > > > > > > > --- > > Vito > > > > On Sun, Nov 5, 2017 a

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-02-21 Thread vito jeng
Matthias, Sorry for not response these days. I just finished it. Please have a look. :) --- Vito On Wed, Feb 14, 2018 at 5:45 AM, Matthias J. Sax <matth...@confluent.io> wrote: > Is there any update on this KIP? > > -Matthias > > On 1/3/18 12:59 AM, vito jen

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-01-03 Thread vito jeng
Does this make sense? > > -Matthias > > On 12/20/17 12:54 AM, vito jeng wrote: > > Matthias, > > > > I try to clarify some concept. > > > > When streams state is REBALANCING, it means the user can just plain > retry. > > > > When streams

Re: [VOTE] KIP-331 Add default implementation to close() and configure() for Serializer, Deserializer and Serde

2018-07-07 Thread vito jeng
Thanks for the KIP! +1(non-binding) --- Vito On Sat, Jul 7, 2018 at 11:29 AM, Chia-Ping Tsai wrote: > hi Ismael > > > I think we should be thinking about > > https://issues.apache.org/jira/browse/KAFKA-6923 at the same time. > > you are right. KAFKA-6923 and KAFKA-6161 are the keys to

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-04-09 Thread vito jeng
; ? > > - Is `StateStoreClosed` a fatal or retryable exception ? > > I apologize for not well written parts. I tried to modify some code in the recent period and modify the KIP. The modification is now complete. Please look again. > > > -Matthias > > > On 2/21/18

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-04-18 Thread vito jeng
you elaborate? > > > Can you explain the purpose of the "internal exceptions". It's unclear > to me atm why they are introduced. > > > -Matthias > > On 4/10/18 12:33 AM, vito jeng wrote: > > Matthias, > > > > Thanks for the review. > > I reply s

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-04-24 Thread vito jeng
2018 at 8:58 AM, Matthias J. Sax <matth...@confluent.io> > wrote: > > > Thanks for clarification! That makes sense to me. > > > > Can you update the KIP to make those suggestions explicit? > > > > > > -Matthias > > > > On 4/18/18 2:19 PM, v

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-04-24 Thread vito jeng
stions explicit? > > > -Matthias > > On 4/18/18 2:19 PM, vito jeng wrote: > > Matthias, > > > > Thanks for the feedback! > > > >> It's up to you to keep the details part in the KIP or not. > > > > Got it! > > > >&g

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-04-24 Thread vito jeng
eStoreException. > > > This will gently encourage callers to migrate to the new exception and > > open > > > the possibility of removing InvalidStateStoreException entirely in a > > future > > > release. > > > > > > Thanks, > > >

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-06-22 Thread vito jeng
e > error? > > One more nits: ReadOnlyWindowStore got a new method #fetch(K key, long > time); that should be added > > > Overall I like the KIP but some details are still unclear. Maybe it > might help if you open an PR in parallel? > > > -Matthias > > On 4/24

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-10-17 Thread vito jeng
Just open a PR for further discussion: https://github.com/apache/kafka/pull/5814 Any suggestion is welcome. Thanks! --- Vito On Thu, Oct 11, 2018 at 12:14 AM vito jeng wrote: > Hi John, > > Thanks for reviewing the KIP. > > > I didn't follow the additi

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-11-11 Thread Vito Jeng
teStoreMigratedException or > StateStoreNotAvailableException later. > > > > Also, can you clarify the cases (ie, when will it be wrapped with the > > one or the other)? > > > > > > I am also wondering, if we should introduce a fatal exception > > `UnkownStateStoreExc

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-11-11 Thread Vito Jeng
ghts? --- Vito On Sun, Nov 11, 2018 at 5:31 PM Vito Jeng wrote: > Hi, Matthias, > > Sorry for the late reply. > > > I am wondering what the semantic impact/change is, if we introduce > > `RetryableStateStoreException` and `FatalStateStoreException` that both > &

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-10-05 Thread vito jeng
one is tricky and could also be merged into one of the first > two, depending if you want to argue that it's retryable or not. (Just > food for though -- not sure what others think.) > > > > -Matthias > > On 6/22/18 8:06 AM, vito jeng wrote: > > Matthias, > >

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2018-10-10 Thread vito jeng
>>>> StreamThreadStateStoreProvider#stores() will throw > > > >>>> StreamThreadNotRunningException when StreamThread state is not > > > >> RUNNING. The > > > >>>> user can retry until KafkaStream state is RUNNING. > > >

Re: [VOTE] KIP-367 Introduce close(Duration) to Producer and AdminClient instead of close(long, TimeUnit)

2018-09-12 Thread vito jeng
+1 --- Vito On Mon, Sep 10, 2018 at 4:52 PM, Dongjin Lee wrote: > +1. (Non-binding) > > On Mon, Sep 10, 2018 at 4:13 AM Matthias J. Sax > wrote: > > > Thanks a lot for the KIP. > > > > +1 (binding) > > > > > > -Matthias > > > > > > On 9/8/18 11:27 AM, Chia-Ping Tsai wrote: > > > Hi All, > >

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2019-06-22 Thread Vito Jeng
gt; > > Last point: Why do we need to add? > > > QueryableStoreType#setStreams(KafkaStreams streams); > > John asked this question already and you replied to it. But I am not > sure what your answer means. Can you explain it in more detail? > > > > Thanks for your pat

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2019-07-03 Thread Vito Jeng
xception` directly? > > > Last point: Why do we need to add? > > > QueryableStoreType#setStreams(KafkaStreams streams); > > John asked this question already and you replied to it. But I am not > sure what your answer means. Can you explain it in more deta

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2019-07-05 Thread Vito Jeng
Hi, Mattias, Just completed the modification of KIP, please take a look when you are available. --- Vito On Wed, Jul 3, 2019 at 9:07 PM Vito Jeng wrote: > Hi, Matthias, > > This is second part. > > > For the internal exceptions: > > > > `StateStoreClosedExcep

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2019-08-09 Thread Vito Jeng
My bad. The short link `https://shorturl.at/CDNT9` <https://shorturl.at/CDNT9> seems incorrect. Please use the following instead: https://shorturl.at/bkKQU --- Vito On Fri, Aug 9, 2019 at 10:53 AM Vito Jeng wrote: > Thanks, Matthias! > > > About `StreamThreadNotStartedExc

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2019-11-03 Thread Vito Jeng
t; > to `StreamThreadRebalancingException` that allows for "blind" retries > > that either resolve (if the store is still on the same instance after > > rebalancing finishes, or changes to `StateStoreMigratedException` if the > > store was migrated away during reba

Re: [VOTE] KIP-216: IQ should throw different exceptions for different errors

2020-01-22 Thread Vito Jeng
> > >> On Tue, Jan 14, 2020 at 9:41 AM Navinder Brar > >> wrote: > >> > >>> +1 (non-binding) With a small comment which was mentioned by Vinoth as > >>> well. Did we fix on the flag for StreamsRebalancingException, I don't > see &

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-22 Thread Vito Jeng
Got it, thanks Matthias. --- Vito On Thu, Jan 23, 2020 at 1:31 PM Matthias J. Sax wrote: > Thanks Vito. > > I am also ok with either name. Just a personal slight preference, but > not a important. > > > -Matthias > > On 1/21/20 6:52 PM, Vito Jeng wrote: > >

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-02-01 Thread Vito Jeng
is welcome. Thanks Matthias for the reminder. --- Vito On Thu, Jan 23, 2020 at 2:13 PM Vito Jeng wrote: > Got it, thanks Matthias. > > --- > Vito > > > On Thu, Jan 23, 2020 at 1:31 PM Matthias J. Sax > wrote: > >> Thanks Vito. >> >> I am also ok with e

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-02-21 Thread Vito Jeng
-Navinder > > > On Wednesday, February 5, 2020, 12:17 AM, Matthias J. Sax < > mj...@apache.org> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Thanks Vito! > > That makes sense to me. > > > On 2/1/20 11:29 PM, Vito Jeng wrote: > > Hi, f

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-02-22 Thread Vito Jeng
.java#L62 > into 2 parts and check tasks.get(keyTaskId) separately. If it is null, > we can throw an InvalidPartitionException. WDYS? > > > > Thanks, > > Navinder > > > > > > On Saturday, 22 February, 2020, 06:22:14 am IST, Vito Jeng > wrote:

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-11 Thread Vito Jeng
t; > state store is closed on not -- I can't query it anyway? Maybe I miss > > something thought? > > > > > > -Matthias > > > > > > On 11/3/19 6:07 PM, Vito Jeng wrote: > > > Sorry for the late reply, thanks for the review. > > > > > > &

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-15 Thread Vito Jeng
-- It looks reasonable. I'm fine with omitting the categorization but not very sure it is a good choice. Does any other folks provide opinion? Hi, folks, Just update the KIP-216, please take a look. --- Vito On Thu, Jan 16, 2020 at 6:35 AM Vito Jeng wrote: > > Hi, folks, > > Thank yo

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-15 Thread Vito Jeng
> > > and thus, for a user point of view, why does it matter if the store is > > > closed on not? I don't understand why/how this information would be > > > useful? Do you have a concrete example in mind how a user would react > > > differently to both exceptions?

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-17 Thread Vito Jeng
Hi, folks, Just update the KIP, please take a look. Thanks! --- Vito On Fri, Jan 17, 2020 at 9:12 AM Vito Jeng wrote: > Thanks Bill, John and Matthias. Glad you guys joined this discussion. > I got a lot out of the discussion. > > I would like to update KIP-216 base on John'

[VOTE] KIP-216: IQ should throw different exceptions for different errors

2020-01-14 Thread Vito Jeng
Hi, all, I would like to start the vote for KIP-216. Currently, IQ throws InvalidStateStoreException for any types of error. With this KIP, user can distinguish different types of error. KIP is here:

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-21 Thread Vito Jeng
oreNotAvailableException`, because this exception is thrown if > Streams is in state PENDING_SHUTDOWN / NOT_RUNNING / ERROR ? > > > > -Matthias > > On 1/17/20 9:56 PM, John Roesler wrote: > > Thanks, Vito. I've just cast my vote. > > -John > > > > On Fri, Ja

Re: [DISCUSS]KIP-216: IQ should throw different exceptions for different errors

2020-01-16 Thread Vito Jeng
app. On the other > >> hand, considering the exception fatal has a good chance of avoiding a > >> frustrating debug session if you just forgot to call start. > >> > >> Nevertheless, if we omit the categorization, it’s moot. > >> > >> It would be easy to add