Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-10 Thread Sophie Blee-Goldman
Whoops, just noticed there is already a voting thread for this. Hard to keep track with all the KIPs going on right now! In that case I'll just wait for the SerializationExceptionOrigin thing to be added and then I'll vote. Should definitely be able to make 3.8 in this case :D On Fri, May 10,

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-10 Thread Sophie Blee-Goldman
Sounds like we're more or less in agreement here. I think the KIP just needs one small update still, which is the SerializationExceptionOrigin enum. As discussed there are a few options for this and we're all happy to defer to the preference of the KIP authors, but if we keep the KIP as-is with

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-10 Thread Bill Bejeck
Great KIP discussion so far by everyone. At this point, I'm in agreement with the direction and current state of the KIP. As for having two separate callbacks for the ProductionExceptionHandler, I'm somewhat split in that I agree with points raised by Sophie and Matthias with my final position

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-09 Thread Sophie Blee-Goldman
The type safety issue is definitely not solved by having two separate callbacks. I just think it gets a bit worse by mashing them into one method. At least in the plain #handle method you can be sure that the type is ProducerRecord and in #handleSerialization the type is some POJO. And in theory

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-09 Thread Matthias J. Sax
Thanks Sophie! Makes it much clearer where you are coming from. About the Type unsafety: isn't this also an issue for the `handleSerialziationException` case, because the handler is used for all sink topics, and thus key/value types are not really know w/o taking the sink topic into account?

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-08 Thread Sophie Blee-Goldman
Well I definitely don't feel super strongly about it, and more importantly, I'm not a user. So I will happily defer to the preference of anyone who will actually be using this feature. But I'll explain my reasoning: There *is* a relevant distinction between these two callbacks -- because the

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-07 Thread Matthias J. Sax
@Loic, yes, what you describe is exactly what I had in mind. @Sophie, can you elaborate a little bit? First of all, I agree that it makes sense to maintain the two separate callbacks for the ProductionExceptionHandler, since one of them is specifically for serialization exceptions while the

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-07 Thread Sophie Blee-Goldman
First of all, I agree that it makes sense to maintain the two separate callbacks for the ProductionExceptionHandler, since one of them is specifically for serialization exceptions while the other is used for everything/anything else. I also think we can take advantage of this fact to simplify

[DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-07 Thread Loic Greffier
Hi Matthias, To sum up with the ProductionExceptionHandler callback methods (106) proposed changes. A new method ProductionExceptionHandler#handle is added with the following signature: > ProductionExceptionHandlerResponse handle(final ErrorHandlerContext context, > final ProducerRecord

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-03 Thread Matthias J. Sax
What about (106) to unify both exiting callback methods of `ProductionExceptionHandler` into a single one, instead of adding two new ones? Damien's last reply about it was: I will think about unifying, I do agree it would be cleaner. There was not follow up on this question, and the KIP

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-03 Thread Loic Greffier
Hi Bruno, Good catch, KIP has been updated accordingly. Regards, Loïc

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-03 Thread Bruno Cadonna
US EXTERNAL MESSAGE] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning This might be a fraudulent message! When clicking REPLY, your answers will NOT go to the sender (andrew_schofi...@live.com). Instead, replies will be sent to dev@kafka.apach

[DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-03 Thread Sebastien Viale
nks Sébastien De : Andrew Schofield Envoyé : vendredi 3 mai 2024 06:44 À : dev@kafka.apache.org Objet : [SUSPICIOUS EXTERNAL MESSAGE] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning This mi

[DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-03 Thread Sebastien Viale
rew Schofield Envoyé : vendredi 3 mai 2024 06:44 À : dev@kafka.apache.org Objet : [SUSPICIOUS EXTERNAL MESSAGE] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning This might be a fraudulent message! When clicking REPLY, your answers will NOT

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-02 Thread Andrew Schofield
Hi, I’ve changed my mind on this one having read through the comments. I don’t think the exception handler should be able to mess with the headers to the detriment of the code that called the handler. While I like the hygiene of having an ImmutableHeaders interface, I feel we can use the

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-02 Thread Sophie Blee-Goldman
I tend to agree that we should just return a pure Headers instead of introducing a new class/interface to protect overwriting them. I think a pretty good case has been made already so I won't add onto it, just wanted to voice my support. Is that the only remaining question on this KIP? Might be

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-05-01 Thread Lianet M.
Hi all, thanks Damien for the KIP! After looking into the KIP and comments, my only concern is aligned with one of Matthias comments, around the ImmutableHeaders introduction, with the motivation not being clear enough. The existing handlers already expose the headers (indirectly). Ex.

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-30 Thread Matthias J. Sax
Thanks for the update. I am wondering if we should use `ReadOnlyHeaders` instead of `ImmutableHeaders` as interface name? Also, the returned `Header` interface is technically not immutable either, because `Header#key()` returns a mutable byte-array... Would we need a `ReadOnlyHeader`

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-25 Thread Loic Greffier
Hi Matthias, I have updated the KIP regarding points 103 and 108. 103. I have suggested a new `ImmutableHeaders` interface to deal with the immutability concern of the headers, which is basically the `Headers` interface without the write accesses. public interface ImmutableHeaders { Header

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-23 Thread Damien Gasparina
; >>>>>> > >>>>>> On 4/11/24 12:06 AM, Matthias J. Sax wrote: > >>>>>>> Thanks for the KIP. Great discussion. > >>>>>>> > >>>>>>> I am not sure if I understand the proposal from Bruno

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-22 Thread Matthias J. Sax
echnical Expert Kafka* Carmes / Bâtiment A17 4e / 63100 Clermont-Ferrand *De :* Bruno Cadonna *Envoyé :* mercredi 10 avril 2024 10:38 *À :* dev@kafka.apache.org *Objet :* [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-22 Thread Damien Gasparina
e handler? > >>>>>> >> Is it the input record to the task? Is it the input record to the > >>>>>> >> processor node? Is it the input record to the processor? > >>>>>> > > >>>>>> > The input

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-22 Thread Bruno Cadonna
-- *De :* Bruno Cadonna *Envoyé :* mercredi 10 avril 2024 10:38 *À :* dev@kafka.apache.org *Objet :* [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning External sender Do not click on any links or open any attachments unless

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-21 Thread Damien Gasparina
ok with moving forward with > > > > this KIP as-is, but we should be aware of potential limitations for DSL > > > > users. We can always do a follow up KIP to close gaps when we > > understand > > > > the impact better -- covering the DSL would also ex

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-12 Thread Sophie Blee-Goldman
; >> > ProcessingExceptionHandler.ProcessingHandlerResponse response = > > >> this.processingExceptionHandler > > >> > .handle(internalProcessorContext, (Record) record, > e); > > >> > > > >> > if (response == > > >&

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-11 Thread Damien Gasparina
t;> > >> You are right, it will simplify types. > >> > >> We update the KIP > >> > >> regards > >> > >> Sébastien *VIALE*** > >> > >> *MICHELIN GROUP* - InfORMATION Technology > >> *Technical Expert Kafka* &

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-11 Thread Bruno Cadonna
100 Clermont-Ferrand *De :* Bruno Cadonna *Envoyé :* mercredi 10 avril 2024 10:38 *À :* dev@kafka.apache.org *Objet :* [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning External sender Do not click on a

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-10 Thread Matthias J. Sax
100 Clermont-Ferrand *De :* Bruno Cadonna *Envoyé :* mercredi 10 avril 2024 10:38 *À :* dev@kafka.apache.org *Objet :* [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing War

[DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-10 Thread Sebastien Viale
Cadonna Envoyé : mercredi 10 avril 2024 10:38 À : dev@kafka.apache.org Objet : [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning External sender Do not click on any links or open any attachments unless you trust the sender and know

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-10 Thread Bruno Cadonna
Blee-Goldman mailto:sop...@responsive.dev>> Envoyé : samedi 6 avril 2024 01:08 À : dev@kafka.apache.org<mailto:dev@kafka.apache.org> mailto:dev@kafka.apache.org>> Objet : [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing War

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-09 Thread Loic Greffier
the record be forwarded with > > >> the ProcessorContext. > > >> > > >> The ProcessingContext is sufficient, we do expect that most people > > >> would need to access the RecordMetadata. > > >> > > >> > > >> > > &

Re: [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-09 Thread Damien Gasparina
orwarded with > > >> the ProcessorContext. > > >> > > >> The ProcessingContext is sufficient, we do expect that most people > > >> would need to access the RecordMetadata. > > >> > > >> > > >> > > >> 3/ T

Re: [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-09 Thread Bill Bejeck
;> information about the faulty record. > >> > >> Assuming that users want to make some specific treatments to the > >> record, they can add a try / catch block in the topology. > >> > >> It is up to users to cast record value and key

Re: [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-09 Thread Bruno Cadonna
@kafka.apache.org Objet : [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning External sender Do not click on any links or open any attachments unless you trust the sender and know the content is safe. Hi Damien, First off thanks

Re: [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-09 Thread Bruno Cadonna
and key in the implementation of the ProcessorExceptionHandler. Cheers Loïc, Damien and Sébastien De : Sophie Blee-Goldman Envoyé : samedi 6 avril 2024 01:08 À : dev@kafka.apache.org Objet : [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-09 Thread Loic Greffier
@Override public void configure(Map configs) { } } The example will be added to the KIP. Regards Sébastien, Damien and Loïc De : Sebastien Viale Envoyé : lundi 8 avril 2024 15:49 À : dev@kafka.apache.org Objet : RE: [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for

RE: [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-08 Thread Sebastien Viale
De : Sophie Blee-Goldman Envoyé : samedi 6 avril 2024 01:08 À : dev@kafka.apache.org Objet : [EXT] Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing Warning External sender Do not click on any links or open any attachments

Re: [DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-04-05 Thread Sophie Blee-Goldman
Hi Damien, First off thanks for the KIP, this is definitely a much needed feature. On the whole it seems pretty straightforward and I am in favor of the proposal. Just a few questions and suggestions here and there: 1. One of the #handle method's parameters is "ProcessorNode node", but

[DISCUSS] KIP-1033: Add Kafka Streams exception handler for exceptions occuring during processing

2024-03-29 Thread Damien Gasparina
Hi everyone, After writing quite a few Kafka Streams applications, me and my colleagues just created KIP-1033 to introduce a new Exception Handler in Kafka Streams to simplify error handling. This feature would allow defining an exception handler to automatically catch exceptions occurring during