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

The StreamsConfig.STATE_DIR_CONFIG's default value does not reflect the JVM parameter or OS-specific settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0
    • streams
    • None

    Description

      I found this problem working for KAFKA-10585.

      The JVM's temporary directory location is different per OS, and JVM allows to change it with `java.io.tmpdir` system property. In Linux, it defaults to `/tmp`.

      The problem is the default value of StreamsConfig.STATE_DIR_CONFIG (`state.dir`) is fixed to `/tmp/kafka-streams`. For this reason, it does not change if the runs on OS other than Linux or the user specifies `java.io.tmpdir` system property.

      It should be `{temp-directory}/kafka-streams`, not `/tmp/kafka-streams`.

      Attachments

        Issue Links

          Activity

            People

              dongjin Dongjin Lee
              dongjin Dongjin Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: