cadonna commented on a change in pull request #8987: URL: https://github.com/apache/kafka/pull/8987#discussion_r450989016
########## File path: streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractRocksDBSegmentedBytesStore.java ########## @@ -251,7 +252,7 @@ void restoreAllInternal(final Collection<KeyValue<byte[], byte[]>> records) { // This handles the case that state store is moved to a new client and does not // have the local RocksDB instance for the segment. In this case, toggleDBForBulkLoading // will only close the database and open it again with bulk loading enabled. - if (!bulkLoadSegments.contains(segment)) { + if (!bulkLoadSegments.contains(segment) && context instanceof ProcessorContextImpl) { Review comment: Good point! Will do! ---------------------------------------------------------------- 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