Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently in streams we clean up old state directories every so often (as defined by state.cleanup.delay.ms). However, every StreamThread runs the cleanup, which is both unnecessary and can potentially lead to race conditions.
It would be better to perform the state cleanup on a single thread and only when the KafkaStreams instance is in a running state.
Attachments
Issue Links
- is duplicated by
-
KAFKA-4890 State directory being deleted when another thread holds the lock
- Resolved
- is related to
-
KAFKA-5070 org.apache.kafka.streams.errors.LockException: task [0_18] Failed to lock the state directory: /opt/rocksdb/pulse10/0_18
- Resolved
- links to