KIP-1283 — Clarify KafkaStreams cleanUp semantics to preserve process metadata and state directory lock file
Discussion Streams
Updates the public contract of KafkaStreams#cleanUp to explicitly preserve the process identity metadata file (kafka-streams-process-metadata) and the application directory lock file (.lock), clarifying that the method clears local state but may retain the application directory. The existing behavior incorrectly attempted to delete the application directory even when valid metadata files were present, generating misleading warning logs.
Details
| Author | sanghyeok an |
| Status | Discussion |
| JIRA | KAFKA-17251 |
| Wiki | View on Apache Wiki |
| Created | 2026-02-17 |
| Last Modified | 2026-02-17 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.