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

Do streams state directory cleanup on a single thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0.1
    • None
    • None

    Description

      Currently in streams we clean up old state directories every so often (as defined by state.cleanup.delay.ms). However, every StreamThread runs the cleanup, which is both unnecessary and can potentially lead to race conditions.

      It would be better to perform the state cleanup on a single thread and only when the KafkaStreams instance is in a running state.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: