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

Clean up of state directories can possibly remove stores that are about to be used by another thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.0
    • 0.11.0.0
    • streams
    • None

    Description

      Currently, each StreamThread cleans up unused state directories based on the config StreamsConfig.STATE_CLEANUP_DELAY_MS_CONFIG.
      In situations where there are multiple threads configured this can lead to a race condition where the state directory gets removed by one thread when the task has been assigned (but not yet taken a lock) to another thread in the process.

      Attachments

        Issue Links

          Activity

            People

              damianguy Damian Guy
              damianguy Damian Guy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: