[ 
https://issues.apache.org/jira/browse/KAFKA-6066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214165#comment-16214165
 ] 

Guozhang Wang commented on KAFKA-6066:
--------------------------------------

We have removed usage on DateFormat in this commit 
https://github.com/apache/kafka/commit/ed0e692147d81e396bf10f4d9425516d51bd52cc

And now it only gets used when encountering an old formatted segment file name 
to convert to the new format. This is for backward compatibility.

> Use of SimpleDateFormat in RocksDBWindowStore may not be Threadsafe
> -------------------------------------------------------------------
>
>                 Key: KAFKA-6066
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6066
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: Srikanth Sundarrajan
>            Priority: Minor
>
> Currently SimpleDateFormat is used to construct segmentId from segmentName 
> and vice-versa. This however may not be thread safe if WindowStore is 
> accessed by more than one SteamTask/thread concurrently. 
> Ref: *org.apache.kafka.streams.state.internals.RocksDBWindowStore#formatter*



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to