Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-14300

StreamTask#invoke leaks threads if OperatorChain fails to be constructed

    XMLWordPrintableJSON

Details

    Description

      In the StreamTask#invoke method if an exception occurs during the allocation of the operatorChain class, the exception handling fails to cleanup the threads allocated as StreamTask#recordWriters. This causes threads to leak as flink attempts to continually restart and fail for the same cause.

       

      An example cause is a deserialization issue on a custom operator from a checkpoint.

       

      Attached is a suggested fix for the master branch.

      Attachments

        1. thread-leak-patch.diff
          0.8 kB
          Marcos Klein

        Activity

          People

            Unassigned Unassigned
            mklein0 Marcos Klein
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m