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

Reset thread interrupt state in case of InterruptedException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: streams
    • Labels:

      Description

      There are some places where InterruptedException is caught but thread interrupt state is not reset.
      e.g. from WorkerSourceTask#execute() :

              } catch (InterruptedException e) {
                  // Ignore and allow to exit.
      

      Proper way of handling InterruptedException is to reset thread interrupt state.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mjsax Matthias J. Sax
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: