Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12887

Do not trigger user-customized ExceptionalHandler for RTE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • 3.1.0
    • streams
    • None

    Description

      Today in StreamThread we have a try-catch block that captures all Throwable e and then triggers this.streamsUncaughtExceptionHandler.accept(e). However, there are possible RTEs such as IllegalState/IllegalArgument exceptions which are usually caused by bugs, etc. In such cases we should not let users to decide what to do with these exceptions, but should let Streams itself to enforce the decision, e.g. in the IllegalState/IllegalArgument we should fail fast to notify the potential error.

      Attachments

        Activity

          People

            jlprat Josep Prat
            guozhang Guozhang Wang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: