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

Guozhang Wang commented on KAFKA-7024:
--------------------------------------

[~abhishek.agarwal] Thanks for the detailed explanation.

In `RocksDBStore.openDB` we call

{code}
Files.createDirectories(dir.getParentFile().toPath());
return RocksDB.open(options, dir.getAbsolutePath());
{code}

Are you suggesting we should also create the {{dir.getAbsolutePath()}} as well 
as the parent directory?

> Rocksdb state directory should be created before opening the DB
> ---------------------------------------------------------------
>
>                 Key: KAFKA-7024
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7024
>             Project: Kafka
>          Issue Type: Improvement
>          Components: streams
>            Reporter: Abhishek Agarwal
>            Priority: Minor
>              Labels: user-experience
>
> After enabling rocksDB logging, We continually see these errors in kafka 
> stream logs, everytime a new window segment is created
> ```
> Error when reading <rocksdb-directory-path> 
> ```
> While its not a problem in itself, since rocksDB internally will create the 
> directory but It will do so only after logging the above error. It would 
> avoid unnecessary logging if the segment directory can be created in advance. 
> Right now, only the parent directories are created for a rocksDB segment. 
> Logging is more prominent when there are many partitions and segment size is 
> smaller (minute or two). 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to