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

Race condition in StreamThread state change

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.2, 2.2.2, 2.4.0, 2.3.1
    • Component/s: streams
    • Labels:
      None

      Description

      In the call to `StreamThread.addRecordsToTasks` we don't have synchronization when we attempt to extract active tasks. If after one long poll in runOnce the application state changes to PENDING_SHUTDOWN, there is a potential close on TaskManager which erases the active tasks map, thus triggering NPE and bringing the thread state to a false shutdown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchen225242 Boyang Chen
                Reporter:
                bchen225242 Boyang Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: