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

Avoid third party exception to flow through streams code base

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: streams

      Description

      Streams uses multiple internal client that might throw fatal exceptions (some should actually never occur, and if, this would indicate a bug).

      We should wrap all calls to the used clients with a try-catch, and log those exceptions as ERRORs immediately. For exceptions that can only occur due to a bug (e.g., IllegalStateException, IllegalArgumentException, WakeupException, InterruptException) we should ask users in the log message to report this as a bug.

      Last, we rethrow all those exceptions as StreamsException (to avoid that a standard library exception might be caught by accident somewhere else in our code base).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mjsax Matthias J. Sax
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: