Skip to content

Conversation

@chickenchickenlove
Copy link
Contributor

Summary

KafkaStreams#cleanup(...) currently logs a WARN when the state directory cannot be deleted because it is not empty. Since KAFKA-10716, the processId file is persisted in state directory and is expected to remain across restarts, so this WARN can be misleading when the process metadata file is the only remaining entry.

Changes

  • In StateDirectory#clean(...), If the directory contains only the process metadata file, a debug message is logged explaining that the directory was not deleted because it still contains the process metadata file required for stable task assignment across restarts, and no WARN is emitted. If any other file remains, the existing WARN is logged as before.

Related Ticket

@github-actions github-actions bot added triage PRs from the community streams small Small PRs labels Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved small Small PRs streams triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants