guozhangwang commented on pull request #8962: URL: https://github.com/apache/kafka/pull/8962#issuecomment-652708018
> 2\. But just opening a rocksdb store creates a `rocksdb` base dir in the task directory, so the `taskDirIsEmpty` check always fails and we always throw TaskCorrupted even if there's nothing there. Hmm, but in `registerStateStores` we first check `stateDirectory.directoryForTaskIsEmpty` and then only after that we call `stateMgr.registerStateStores` so the `rocksDB.open` should be called after the check. Right? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org