You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Dongjin Lee (Jira)" <ji...@apache.org> on 2020/10/13 08:02:00 UTC

[jira] [Created] (KAFKA-10604) The StreamsConfig.STATE_DIR_CONFIG's default value does not reflect the JVM parameter or OS-specific settings

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)