tillrohrmann commented on a change in pull request #18237:
URL: https://github.com/apache/flink/pull/18237#discussion_r777404330



##########
File path: 
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/EmbeddedRocksDBStateBackend.java
##########
@@ -321,8 +321,7 @@ private void lazyInitializeForJob(
 
         // initialize the paths where the local RocksDB files should be stored
         if (localRocksDbDirectories == null) {
-            // initialize from the temp directories
-            initializedDbBasePaths = 
env.getIOManager().getSpillingDirectories();
+            initializedDbBasePaths = new File[] 
{env.getTaskManagerInfo().getTmpWorkingDirectory()};

Review comment:
       Users can still configure multiple RocksDB working directories via 
`state.backend.rocksdb.localdir`. Hence, I think that this should be ok.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to