Dongjin Lee created KAFKA-10604:
-----------------------------------

             Summary: The StreamsConfig.STATE_DIR_CONFIG's default value does 
not reflect the JVM parameter or OS-specific settings
                 Key: KAFKA-10604
                 URL: https://issues.apache.org/jira/browse/KAFKA-10604
             Project: Kafka
          Issue Type: Improvement
          Components: streams
            Reporter: Dongjin Lee
            Assignee: Dongjin Lee


I found this problem working for 
[KAFKA-10585|https://issues.apache.org/jira/browse/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`.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to