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

Potential race condition leading to incorrectly issued interruptions

    XMLWordPrintableJSON

Details

    Description

      There is a race condition in disabling interrupts while closing resources. Currently this is guarded by a volatile variable, but there might be a race condition when:
      1. interrupter thread first checked the shouldInterruptOnCancel flag
      2. shouldInterruptOnCancel flag switched to false as Task/StreamTask entered cleaning up phase
      3. interrupter issued an interrupt while Task/StreamTask are closing/releasing resources, potentially causing a memory leak

      Attachments

        Issue Links

          Activity

            People

              pnowojski Piotr Nowojski
              pnowojski Piotr Nowojski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: